maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult tanned(
    1. AvataaarTypeSkinTanned value
    )?,
  2. TResult yellow(
    1. AvataaarTypeSkinYellow value
    )?,
  3. TResult pale(
    1. AvataaarTypeSkinPale value
    )?,
  4. TResult light(
    1. AvataaarTypeSkinWhite value
    )?,
  5. TResult brown(
    1. AvataaarTypeSkinBrown value
    )?,
  6. TResult darkBrown(
    1. AvataaarTypeSkinDarkBrown value
    )?,
  7. TResult black(
    1. AvataaarTypeSkinBlack value
    )?,
  8. TResult custom(
    1. AvataaarTypeSkinCustom value
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(AvataaarTypeSkinTanned value)? tanned,
  TResult Function(AvataaarTypeSkinYellow value)? yellow,
  TResult Function(AvataaarTypeSkinPale value)? pale,
  TResult Function(AvataaarTypeSkinWhite value)? light,
  TResult Function(AvataaarTypeSkinBrown value)? brown,
  TResult Function(AvataaarTypeSkinDarkBrown value)? darkBrown,
  TResult Function(AvataaarTypeSkinBlack value)? black,
  TResult Function(AvataaarTypeSkinCustom value)? custom,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;