Skip to content

Commit 8d56c7e

Browse files
committed
(Common): Fix ambiguous import error
Signed-off-by: Victor Omondi <victor@slick.co.ke>
1 parent c6195a5 commit 8d56c7e

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/src/chatbox.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ typedef ConversationActionHandler =
2929
void Function(ConversationActionEvent event);
3030
typedef NavigationHandler =
3131
UrlNavigationAction Function(UrlNavigationRequest navigationRequest);
32-
typedef ErrorHandler = void Function(String error);
3332

3433
class SendMessageEvent {
3534
final ConversationData conversation;

lib/src/conversationlist.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import './themeoptions.dart';
1919

2020
typedef SelectConversationHandler =
2121
void Function(SelectConversationEvent event);
22-
typedef ErrorHandler = void Function(String error);
2322

2423
class SelectConversationEvent {
2524
final ConversationData conversation;
@@ -91,7 +90,7 @@ class ConversationList extends StatefulWidget {
9190
final ErrorHandler? onError;
9291

9392
const ConversationList({
94-
Key? key,
93+
super.key,
9594
required this.session,
9695
this.enableZoom = false,
9796
this.showFeedHeader,
@@ -101,7 +100,7 @@ class ConversationList extends StatefulWidget {
101100
this.onSelectConversation,
102101
this.onLoadingStateChanged,
103102
this.onError,
104-
}) : super(key: key);
103+
});
105104

106105
@override
107106
State<ConversationList> createState() => ConversationListState();

lib/src/session.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import './notification.dart';
1717

1818
typedef MessageHandler = void Function(Message message);
1919
typedef TokenFetcherHandler = Future<String> Function();
20-
typedef ErrorHandler = void Function(String error);
2120

2221
enum Provider { fcm, apns }
2322

lib/src/webview_common.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'dart:convert';
33
import './session.dart';
44

55
typedef FnExecute = void Function(String statement);
6+
typedef ErrorHandler = void Function(String error);
67

78
void createSession({
89
required FnExecute execute,

0 commit comments

Comments
 (0)