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