whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;