whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;