maybeWhen<T> method
T
maybeWhen<T>({
- T? b()?,
- T? f()?,
- required T orElse(),
Implementation
T maybeWhen<T>({
T? Function()? b,
T? Function()? f,
required T Function() orElse,
}) =>
{
Direction.b: b,
Direction.f: f,
}[this]
?.call() ??
orElse();