WalletState constructor

const WalletState({
  1. @Default([]) List<CardModel> list,
  2. @Default([]) List<TransactionModel> listTransactions,
  3. @Default(true) bool isLoading,
  4. @Default(false) bool isButtonLoading,
  5. @Default(false) bool isError,
  6. @Default(0) int selectIndex,
})

Implementation

const factory WalletState({
  @Default([]) List<CardModel> list,
  @Default([]) List<TransactionModel> listTransactions,
  @Default(true) bool isLoading,
  @Default(false) bool isButtonLoading,
  @Default(false) bool isError,
  @Default(0) int selectIndex,
}) = _WalletState;