onDisconnected method
Implementation
@override
void onDisconnected(void Function(String? reason) callback) {
_stateChannel.receiveBroadcastStream().listen((call) async {
if (!call['connected']) {
callback(call['reason']);
}
});
}
@override
void onDisconnected(void Function(String? reason) callback) {
_stateChannel.receiveBroadcastStream().listen((call) async {
if (!call['connected']) {
callback(call['reason']);
}
});
}