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, bool useRootNavigator = true, bool? enableSuccessSound = true, int appPINLength = 6, required CustomerInfo customerInfo, BankBoxEnvironment environment = BankBoxEnvironment.staging})

Properties

appInfo AppInfo
Contains details about this app instance
getter/setter pair
appPINLength int
app PIN length
final
customerInfo CustomerInfo
Information about current user
getter/setter pair
enableBalanceCheck bool
allow user to be able to check balance from BankBox
final
enableSuccessSound bool?
allow sound to be played on successful transaction
final
environment BankBoxEnvironment
Defaults to RavenMobilePOSEnvironment.staging,
final
hashCode int
The hash code for this object.
no setterinherited
isStaging bool
no setter
A widget that show up as logo on plugin homepage
final
onClose → void Function()?
Called when a user clicks the close button Add your own close logic is the default does not yield 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 powered by Raven 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
useRootNavigator bool
root navigation for page/dailog
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited