maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult checkCode(
    1. BuildContext context,
    2. String code,
    3. VoidCallback onSuccess
    )?,
  2. TResult getWallets(
    1. BuildContext context
    )?,
  3. TResult createCard(
    1. BuildContext context,
    2. String number,
    3. String expiredDate,
    4. VoidCallback onSuccess,
    )?,
  4. TResult deleteCard(
    1. BuildContext context,
    2. int cardId
    )?,
  5. TResult topUp(
    1. BuildContext context,
    2. int cardId,
    3. num amount,
    4. VoidCallback onSuccess,
    )?,
  6. TResult withdraw(
    1. BuildContext context,
    2. int cardId,
    3. num amount,
    4. VoidCallback onSuccess,
    )?,
  7. TResult selectIndex(
    1. int index
    )?,
  8. TResult getTransaction(
    1. BuildContext context,
    2. RefreshController? controller,
    3. bool? isRefresh
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(BuildContext context, String code, VoidCallback onSuccess)?
      checkCode,
  TResult Function(BuildContext context)? getWallets,
  TResult Function(BuildContext context, String number, String expiredDate,
          VoidCallback onSuccess)?
      createCard,
  TResult Function(BuildContext context, int cardId)? deleteCard,
  TResult Function(BuildContext context, int cardId, num amount,
          VoidCallback onSuccess)?
      topUp,
  TResult Function(BuildContext context, int cardId, num amount,
          VoidCallback onSuccess)?
      withdraw,
  TResult Function(int index)? selectIndex,
  TResult Function(BuildContext context, RefreshController? controller,
          bool? isRefresh)?
      getTransaction,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;