FlutterMono class

Inheritance

Constructors

FlutterMono({Key? key, required String apiKey, required MonoCustomer customer, Widget? errorView, String scope = 'auth', Function? onLoad, ValueChanged<String>? onClose, dynamic onEvent(String event, Map<String, dynamic> data)?, String? reference, Map<String, dynamic> configJson = const {}, bool showLogs = false})
const

Properties

apiKey String
Public Key from your https://app.withmono.com/apps
final
configJson Map<String, dynamic>
Allows an optional configuration object to be passed. When the setup method is called without a config object, the list of institutions will be displayed for a user to select from. https://github.com/withmono/connect.js#setupconfig-object
final
customer MonoCustomer
The customer objects expects the following keys based on the following conditions: New Customers: For new customers, the customer object expects the user’s name, email and identity Existing Customers: For existing customers, the customer object expects only the customer ID.
final
errorView Widget?
Error Widget will show if loading fails
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClose ValueChanged<String>?
Triggered on Connect Widget close
final
onEvent → (dynamic Function(String event, Map<String, dynamic> data)?)
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.
final
onLoad Function?
Triggered on Connect Widget Load
final
reference String?
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
The new mono widget now expects a scope parameter with its string value set to “auth”.
final
showLogs bool
Show MonoView Logs
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FlutterMonoState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
launchMono(BuildContext context) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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