loginListen static method

dynamic loginListen({
  1. bool type = true,
  2. required Function onEvent,
  3. Function? onError,
})

数据监听

Implementation

static loginListen(
    {bool type = true, required Function onEvent, Function? onError}) async {
  _eventChannel.receiveBroadcastStream(type).listen(
      onEvent as void Function(dynamic)?,
      onError: onError,
      onDone: null,
      cancelOnError: null);
}