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;
  for (final a in children) {
    final r = a.matches(key, userMode);
    if (r != null) {
      return r;
    }
  }
  return null;
}