fix: update app to new-flutter-compatible versions
This commit is contained in:
@ -139,8 +139,7 @@ class LocationSubscribeCubit extends Cubit<LocationUpdateState> {
|
||||
}
|
||||
}
|
||||
|
||||
_wsClient =
|
||||
ws.expect("Estabilshing Websocket Conenction failed").toOption();
|
||||
_wsClient = Some(ws.expect("Estabilshing Websocket Connection failed"));
|
||||
|
||||
_connectionCompleter.unwrap().complete();
|
||||
_connectionCompleter = None;
|
||||
@ -153,7 +152,9 @@ class LocationSubscribeCubit extends Cubit<LocationUpdateState> {
|
||||
|
||||
@override
|
||||
Future<void> close() async {
|
||||
await _wsClient.toFutureOption().map((conn) => conn.close());
|
||||
await _wsClient
|
||||
.toFutureOption()
|
||||
.map<Future<void>>((conn) async => await conn.close());
|
||||
return super.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user