when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult tanned(
    1. Color color
    ),
  2. required TResult yellow(
    1. Color color
    ),
  3. required TResult pale(
    1. Color color
    ),
  4. required TResult light(
    1. Color color
    ),
  5. required TResult brown(
    1. Color color
    ),
  6. required TResult darkBrown(
    1. Color color
    ),
  7. required TResult black(
    1. Color color
    ),
  8. required TResult custom(
    1. 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;