BankBoxConfig class
Constructors
-
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, Widget? logo, required CustomerInfo customerInfo, BankBoxEnviroment enviroment = BankBoxEnviroment.staging})
-
Properties
-
appInfo
↔ AppInfo
-
Contains details about this app instance
getter/setter pair
-
customerInfo
↔ CustomerInfo
-
Infomation about current user
getter/setter pair
-
enableBalanceCheck
→ bool
-
allow user to be able to check balance from bankbox
final
-
enviroment
→ BankBoxEnviroment
-
Defaults to
RavenMobilePOSEnviroment.staging
,
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isStaging
→ bool
-
no setter
-
logo
→ Widget?
-
A widget that show up as log on plugion homepage
final
-
onClose
→ void Function()?
-
Called when a user cicks the close button
Add your own close logic is the default does not yeild good behaviour
final
-
onError
→ dynamic Function(BankBoxException exception)
-
Called when a transaction fails
final
-
onSuccess
→ dynamic Function(dynamic)
-
Called when a transaction completes successfully
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
showLabel
→ bool
-
Set to true if you wish to show the label at the bottom
final
-
showTerminals
→ bool
-
allow to show user terminals
final
-
theme
↔ MobilePOSTheme?
-
Customise the look and feel of the plugin
getter/setter pair
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited