when<T> method
T
when<T>({
- required T crop(),
- required T scale(),
Implementation
T when<T>({
required T Function() crop,
required T Function() scale,
}) =>
{
Method.crop: crop,
Method.scale: scale,
}[this]!();