whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult blank(
- Color color
- TResult beardMedium(
- Color color
- TResult beardLight(
- Color color
- TResult beardMajestic(
- Color color
- TResult moustacheFancy(
- Color color
- TResult moustacheMagnum(
- Color color
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function(@ColorSerialiser() Color color)? blank,
TResult Function(@ColorSerialiser() Color color)? beardMedium,
TResult Function(@ColorSerialiser() Color color)? beardLight,
TResult Function(@ColorSerialiser() Color color)? beardMajestic,
TResult Function(@ColorSerialiser() Color color)? moustacheFancy,
TResult Function(@ColorSerialiser() Color color)? moustacheMagnum,
}) =>
throw _privateConstructorUsedError;