when<T> method
T
when<T>({
- required T contentBody(),
- required T contentName(),
- required T contentTopic(),
Implementation
T when<T>({
required T Function() contentBody,
required T Function() contentName,
required T Function() contentTopic,
}) =>
{
KeyKind.contentBody: contentBody,
KeyKind.contentName: contentName,
KeyKind.contentTopic: contentTopic,
}[this]!();