whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? invalidShippingField(
    1. InvalidShippingField field,
    2. String? message
    )?,
  2. TResult? unserviceableShippingAddress(
    1. String? message
    )?,
  3. TResult? invalidCouponCode(
    1. String? message
    )?,
  4. TResult? expiredCouponCode(
    1. String? message
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(InvalidShippingField field, String? message)?
      invalidShippingField,
  TResult? Function(String? message)? unserviceableShippingAddress,
  TResult? Function(String? message)? invalidCouponCode,
  TResult? Function(String? message)? expiredCouponCode,
}) =>
    throw _privateConstructorUsedError;