detectMacro method

String? detectMacro(
  1. List<SwipeDirection> inputPattern
)

Implementation

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