BankBoxConfig constructor
BankBoxConfig({
- required dynamic onSuccess(
- dynamic
- required dynamic onError(
- BankBoxException exception
- required AppInfo appInfo,
- void onClose()?,
- bool enableBalanceCheck = true,
- bool showTerminals = true,
- bool showLabel = true,
- MobilePOSTheme? theme,
- bool? enableSuccessSound = true,
- int appPINLength = 6,
- Widget? logo,
- required CustomerInfo customerInfo,
- 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();
}