We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b53163 commit 095954cCopy full SHA for 095954c
lib/state/connection/connection_cubit.dart
@@ -1,7 +1,7 @@
1
import 'dart:async';
2
3
import 'package:equatable/equatable.dart';
4
-import 'package:flutter/material.dart';
+import 'package:flutter/foundation.dart';
5
import 'package:flutter_bloc/flutter_bloc.dart';
6
7
import 'package:deriv_dependency_injector/dependency_injector.dart';
@@ -77,6 +77,7 @@ class ConnectionCubit extends Cubit<ConnectionState> {
77
await _api!.connect(
78
_connectionInformation,
79
printResponse: enableDebug && printResponse,
80
+ onError: (String error) => emit(ConnectionErrorState(error)),
81
);
82
83
_handleConnectionStatus();
0 commit comments