WhenBlock<R> typedef

WhenBlock<R> = R Function()

.kt

when(expression) { case 0 => value1 case 1 => value2 default => value3 }

.dart

when(expression, Case(0, () => value1), Case(1, () => value2), Default(() => value3) )

Implementation

typedef R WhenBlock<R>();