maybeWhen<TResult extends Object?> method

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