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