Skip to content

Commit f2ff311

Browse files
committed
refactor: add getter for Api
1 parent 414a5ab commit f2ff311

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/state/connection/connection_cubit.dart

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class ConnectionCubit extends Cubit<ConnectionState> {
8686
/// Stream subscription for connectivity.
8787
StreamSubscription<ConnectivityResult>? connectivitySubscription;
8888

89+
BaseAPI get api => _api as BinaryAPI;
90+
8991
/// Reconnect to Websocket.
9092
Future<void> reconnect({
9193
ConnectionInformation? connectionInformation,

0 commit comments

Comments
 (0)