onEvent static method
Called when a Plaid Link event occurs.
Two arguments are returned.
eventName
A string representing the event that has just occurred in the Link flow.metadata
AnEventMetadata
object containing information about the event.
For more information see https://plaid.com/docs/#onevent-callback
Implementation
static void onEvent(LinkEventHandler listener) =>
_platform.onEvent = listener;