when<T> method
T
when<T>({
- required T stable(),
- required T unstable(),
Implementation
T when<T>({
required T Function() stable,
required T Function() unstable,
}) =>
{
RoomVersionAvailable.stable: stable,
RoomVersionAvailable.unstable: unstable,
}[this]!();