maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult immediate(
    1. String label,
    2. String amount,
    3. bool? isPending
    )?,
  2. TResult deferred(
    1. String label,
    2. String amount,
    3. int deferredDate
    )?,
  3. TResult recurring(
    1. String label,
    2. String amount,
    3. ApplePayIntervalUnit intervalUnit,
    4. int intervalCount,
    5. int? startDate,
    6. int? endDate,
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String label, String amount, bool? isPending)? immediate,
  TResult Function(String label, String amount, int deferredDate)? deferred,
  TResult Function(
          String label,
          String amount,
          ApplePayIntervalUnit intervalUnit,
          int intervalCount,
          int? startDate,
          int? endDate)?
      recurring,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;