detectMacro method
Implementation
String? detectMacro(List<SwipeDirection> inputPattern) {
for (var entry in _macros.entries) {
if (_matchesPattern(entry.value, inputPattern)) {
return entry.key;
}
}
return null;
}
String? detectMacro(List<SwipeDirection> inputPattern) {
for (var entry in _macros.entries) {
if (_matchesPattern(entry.value, inputPattern)) {
return entry.key;
}
}
return null;
}