MonoFlutter class

Constructors

MonoFlutter()

Properties

channel MethodChannel
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

launch(BuildContext context, String key, {String? reference, String scope = "auth", Map<String, dynamic>? data, String? reAuthCode, dynamic onLoad()?, dynamic onClosed(String?)?, dynamic onEvent(MonoEvent, MonoEventData)?, dynamic onSuccess(String)?}) → dynamic
Launch the mono-connect widget, key - YOUR_PUBLIC_KEY_HERE paymentId - Use this to initiate direct payment onSuccess - This function is called when a user has successfully onboarded their account. It should take a single String argument containing the token that can be exchanged for an account id. onClose -The optional closure is called when a user has specifically exited the Mono Connect flow (i.e. the widget is not visible to the user). It does not take any arguments. onLoad - This function is invoked the widget has been mounted unto the DOM. You can handle toggling your trigger button within this callback. onEvent - This optional function is called when certain events in the Mono Connect flow have occurred, for example, when the user selected an institution. This enables your application to gain further insight into the Mono Connect onboarding flow. See the data object below for details. reference - This optional string is used as a reference to the current instance of Mono Connect. It will be passed to the data object in all onEvent callbacks. It's recommended to pass a random string. config - This optional configuration object is used as a way to load the Connect Widget directly to an institution login page.
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