when<TResult extends Object?> method

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

Implementation

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