when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult noHair(
- Color color
- required TResult eyepatch(
- Color color
- required TResult hat(
- Color color
- required TResult hijab(
- Color color
- required TResult turban(
- Color color
- required TResult winterHat1(
- Color color
- required TResult winterHat2(
- Color color
- required TResult winterHat3(
- Color color
- required TResult winterHat4(
- Color color
- required TResult longHairBigHair(
- Color color
- required TResult longHairBob(
- Color color
- required TResult longHairBun(
- Color color
- required TResult longHairCurly(
- Color color
- required TResult longHairCurvy(
- Color color
- required TResult longHairDreads(
- Color color
- required TResult longHairFrida(
- Color color
- required TResult longHairFro(
- Color color
- required TResult longHairFroBand(
- Color color
- required TResult longHairNotTooLong(
- Color color
- required TResult longHairShavedSides(
- Color color
- required TResult longHairMiaWallace(
- Color color
- required TResult longHairStraight(
- Color color
- required TResult longHairStraight2(
- Color color
- required TResult longHairStraightStrand(
- Color color
- required TResult shortHairDreads01(
- Color color
- required TResult shortHairDreads02(
- Color color
- required TResult shortHairFrizzle(
- Color color
- required TResult shortHairShaggyMullet(
- Color color
- required TResult shortHairShortCurly(
- Color color
- required TResult shortHairShortFlat(
- Color color
- required TResult shortHairShortRound(
- Color color
- required TResult shortHairShortWaved(
- Color color
- required TResult shortHairSides(
- Color color
- required TResult shortHairTheCaesar(
- Color color
- required TResult shortHairTheCaesarSidePart(
- Color color
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(@ColorSerialiser() Color color) noHair,
required TResult Function(@ColorSerialiser() Color color) eyepatch,
required TResult Function(@ColorSerialiser() Color color) hat,
required TResult Function(@ColorSerialiser() Color color) hijab,
required TResult Function(@ColorSerialiser() Color color) turban,
required TResult Function(@ColorSerialiser() Color color) winterHat1,
required TResult Function(@ColorSerialiser() Color color) winterHat2,
required TResult Function(@ColorSerialiser() Color color) winterHat3,
required TResult Function(@ColorSerialiser() Color color) winterHat4,
required TResult Function(@ColorSerialiser() Color color) longHairBigHair,
required TResult Function(@ColorSerialiser() Color color) longHairBob,
required TResult Function(@ColorSerialiser() Color color) longHairBun,
required TResult Function(@ColorSerialiser() Color color) longHairCurly,
required TResult Function(@ColorSerialiser() Color color) longHairCurvy,
required TResult Function(@ColorSerialiser() Color color) longHairDreads,
required TResult Function(@ColorSerialiser() Color color) longHairFrida,
required TResult Function(@ColorSerialiser() Color color) longHairFro,
required TResult Function(@ColorSerialiser() Color color) longHairFroBand,
required TResult Function(@ColorSerialiser() Color color)
longHairNotTooLong,
required TResult Function(@ColorSerialiser() Color color)
longHairShavedSides,
required TResult Function(@ColorSerialiser() Color color)
longHairMiaWallace,
required TResult Function(@ColorSerialiser() Color color) longHairStraight,
required TResult Function(@ColorSerialiser() Color color) longHairStraight2,
required TResult Function(@ColorSerialiser() Color color)
longHairStraightStrand,
required TResult Function(@ColorSerialiser() Color color) shortHairDreads01,
required TResult Function(@ColorSerialiser() Color color) shortHairDreads02,
required TResult Function(@ColorSerialiser() Color color) shortHairFrizzle,
required TResult Function(@ColorSerialiser() Color color)
shortHairShaggyMullet,
required TResult Function(@ColorSerialiser() Color color)
shortHairShortCurly,
required TResult Function(@ColorSerialiser() Color color)
shortHairShortFlat,
required TResult Function(@ColorSerialiser() Color color)
shortHairShortRound,
required TResult Function(@ColorSerialiser() Color color)
shortHairShortWaved,
required TResult Function(@ColorSerialiser() Color color) shortHairSides,
required TResult Function(@ColorSerialiser() Color color)
shortHairTheCaesar,
required TResult Function(@ColorSerialiser() Color color)
shortHairTheCaesarSidePart,
}) =>
throw _privateConstructorUsedError;