loginListen method
dynamic
loginListen({})
override
数据监听
Implementation
@override
loginListen(
{bool type = true,
required Function onEvent,
Function? onError,
isOnlyOne = true}) async {
/// 默认为初始化单监听
if (isOnlyOne && streamSubscription != null) {
/// 原来监听被移除
dispose();
}
streamSubscription = onChange(type: type)!.listen(
onEvent as void Function(dynamic)?,
onError: onError,
onDone: null,
cancelOnError: null);
}