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