whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult tanned(
- Color color
- TResult yellow(
- Color color
- TResult pale(
- Color color
- TResult light(
- Color color
- TResult brown(
- Color color
- TResult darkBrown(
- Color color
- TResult black(
- Color color
- TResult custom(
- Color color
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function(@ColorSerialiser() Color color)? tanned,
TResult Function(@ColorSerialiser() Color color)? yellow,
TResult Function(@ColorSerialiser() Color color)? pale,
TResult Function(@ColorSerialiser() Color color)? light,
TResult Function(@ColorSerialiser() Color color)? brown,
TResult Function(@ColorSerialiser() Color color)? darkBrown,
TResult Function(@ColorSerialiser() Color color)? black,
TResult Function(@ColorSerialiser() Color color)? custom,
}) =>
throw _privateConstructorUsedError;