UserEventListenerFunction typedef

UserEventListenerFunction = void Function(UserEvent eventName, Session? session)

Defines the structure of listener (callback) functions for user generated events (messages).

eventName - The user event that has been triggered. Possible value are user:signin, user:signout, user:update, user:delete, user:pwdchange, user:emailchange, user:phonechange.

session - The user session object that has triggered the event. If the event is triggered by the user without a session then this value will be null. @export @type ListenerFunction

Implementation

typedef UserEventListenerFunction = void Function(
    UserEvent eventName, Session? session);