matches method Null safety

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

Implementation

@override
Arg? matches(ProgramOperation key, bool userMode) {
  if (this.userMode == userMode) {
    return child.matches(key, userMode);
  } else {
    return null;
  }
}