when<T> method
T
when<T>({
- required T guest(),
- required T user(),
Implementation
T when<T>({
required T Function() guest,
required T Function() user,
}) =>
{
AccountKind.guest: guest,
AccountKind.user: user,
}[this]!();