matches method Null safety

  1. @override
Arg? matches(
  1. ProgramOperation key,
  2. bool userMode
)
override

Implementation

@override
Arg? matches(ProgramOperation key, bool userMode) {
  key = synonyms[key] ?? key;
  int i = 0;
  for (final k in keys) {
    if (k == key) {
      return _next[i];
    }
    i++;
  }
  return null;
}