when<TResult extends Object?> method

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

Implementation

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