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