maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- 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
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;