call method

FutureOr<O?> call(
  1. I input
)

Implementation

FutureOr<O?> call(I input) async {
  for (var c in _cases) {
    if (c.matches(input)) {
      return await c(input);
    }
  }
  return null;
}