login and logout events. This can be achieved using the LoginListener class provided. LoginListener consists of 4 events that can be triggered. These are as follows:
To add the
LoginListener, you need to use the addLoginListener() method provided by the SDK which takes a unique identifier for the listener and object of the LoginListener class itself.
We suggest adding the listener in the init method of the Stateful class or at the initialization of class where you wish to receive these events in.
- Dart
removeLoginListener() method provided by the SDK and pas the ID of the listener that needs to be removed.
- Dart