when<T> method
T
when<T>({
- required T privateChat(),
- required T publicChat(),
- required T trustedPrivateChat(),
Implementation
T when<T>({
required T Function() privateChat,
required T Function() publicChat,
required T Function() trustedPrivateChat,
}) =>
{
CreateRoomPreset.privateChat: privateChat,
CreateRoomPreset.publicChat: publicChat,
CreateRoomPreset.trustedPrivateChat: trustedPrivateChat,
}[this]!();