when<T> method
T
when<T>({
- required T rank(),
- required T recent(),
Implementation
T when<T>({
required T Function() rank,
required T Function() recent,
}) =>
{
SearchOrder.rank: rank,
SearchOrder.recent: recent,
}[this]!();