subscribeAuthEvent method

Future<StreamSubscription> subscribeAuthEvent(
  1. String eventName,
  2. dynamic eventMethod, {
  3. dynamic onErrorMethod,
})

Implementation

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