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