key method

Switcher<I, O> key(
  1. I key,
  2. Method<I, O> value
)

Implementation

Switcher<I, O> key(final I key, final Method<I, O> value) {
  return this.predicate((value) => value == key, value);
}