subscribeAuthEvent method
Future<StreamSubscription>
subscribeAuthEvent(
- String eventName,
- dynamic eventMethod, {
- dynamic onErrorMethod,
Implementation
Future<StreamSubscription<dynamic>> subscribeAuthEvent(String eventName, eventMethod, {onErrorMethod}) async {
return EventChannel(eventName).receiveBroadcastStream(eventName).listen(eventMethod, onError: onErrorMethod);
}