maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<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,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;