Switcher<I, O> class

Constructors

Switcher.of(I value)

Properties

cases Map<Predicate<I>, Method<I, O>>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → I
final

Methods

consume() Optional<O>
key(I key, Method<I, O> value) Switcher<I, O>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orElse(O value) → O
predicate(Predicate<I> predicate, Method<I, O> value) Switcher<I, O>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited