mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. {TResult? w100(
    1. FontWeightW100 value
    )?,
  2. TResult? w200(
    1. FontWeightW200 value
    )?,
  3. TResult? w300(
    1. FontWeightW300 value
    )?,
  4. TResult? w400(
    1. FontWeightW400 value
    )?,
  5. TResult? w500(
    1. FontWeightW500 value
    )?,
  6. TResult? w600(
    1. FontWeightW600 value
    )?,
  7. TResult? w700(
    1. FontWeightW700 value
    )?,
  8. TResult? w800(
    1. FontWeightW800 value
    )?,
  9. TResult? w900(
    1. FontWeightW900 value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(FontWeightW100 value)? w100,
  TResult? Function(FontWeightW200 value)? w200,
  TResult? Function(FontWeightW300 value)? w300,
  TResult? Function(FontWeightW400 value)? w400,
  TResult? Function(FontWeightW500 value)? w500,
  TResult? Function(FontWeightW600 value)? w600,
  TResult? Function(FontWeightW700 value)? w700,
  TResult? Function(FontWeightW800 value)? w800,
  TResult? Function(FontWeightW900 value)? w900,
}) =>
    throw _privateConstructorUsedError;