BankBoxConfig constructor

BankBoxConfig({
  1. required dynamic onSuccess(
    1. dynamic
    ),
  2. required dynamic onError(
    1. BankBoxException exception
    ),
  3. required AppInfo appInfo,
  4. void onClose()?,
  5. bool enableBalanceCheck = true,
  6. bool showTerminals = true,
  7. bool showLabel = true,
  8. MobilePOSTheme? theme,
  9. bool useRootNavigator = true,
  10. bool? enableSuccessSound = true,
  11. int appPINLength = 6,
  12. required CustomerInfo customerInfo,
  13. BankBoxEnvironment environment = BankBoxEnvironment.staging,
})

Implementation

BankBoxConfig(
    {required this.onSuccess,
    required this.onError,
    required this.appInfo,
    this.onClose,
    this.enableBalanceCheck = true,
    this.showTerminals = true,
    this.showLabel = true,
    this.theme,
    this.useRootNavigator = true,
    this.enableSuccessSound = true,
    this.appPINLength = 6,
    this.logo,
    required this.customerInfo,
    this.environment = BankBoxEnvironment.staging})
    : super() {
  theme = theme ?? MobilePOSTheme.defaults();
}