loginListen static method
数据监听
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);
}