maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult blank(
    1. Color color
    )?,
  2. TResult beardMedium(
    1. Color color
    )?,
  3. TResult beardLight(
    1. Color color
    )?,
  4. TResult beardMajestic(
    1. Color color
    )?,
  5. TResult moustacheFancy(
    1. Color color
    )?,
  6. TResult moustacheMagnum(
    1. Color color
    )?,
  7. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(@ColorSerialiser() Color color)? blank,
  TResult Function(@ColorSerialiser() Color color)? beardMedium,
  TResult Function(@ColorSerialiser() Color color)? beardLight,
  TResult Function(@ColorSerialiser() Color color)? beardMajestic,
  TResult Function(@ColorSerialiser() Color color)? moustacheFancy,
  TResult Function(@ColorSerialiser() Color color)? moustacheMagnum,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;