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. required CustomerInfo customerInfo,
  10. BankBoxEnviroment enviroment = BankBoxEnviroment.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.logo,
    required this.customerInfo,
    this.enviroment = BankBoxEnviroment.staging})
    : super() {
  theme = theme ?? MobilePOSTheme.defaults();
}