File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ typedef ConversationActionHandler =
2929 void Function (ConversationActionEvent event);
3030typedef NavigationHandler =
3131 UrlNavigationAction Function (UrlNavigationRequest navigationRequest);
32- typedef ErrorHandler = void Function (String error);
3332
3433class SendMessageEvent {
3534 final ConversationData conversation;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import './themeoptions.dart';
1919
2020typedef SelectConversationHandler =
2121 void Function (SelectConversationEvent event);
22- typedef ErrorHandler = void Function (String error);
2322
2423class 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 ();
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import './notification.dart';
1717
1818typedef MessageHandler = void Function (Message message);
1919typedef TokenFetcherHandler = Future <String > Function ();
20- typedef ErrorHandler = void Function (String error);
2120
2221enum Provider { fcm, apns }
2322
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'dart:convert';
33import './session.dart' ;
44
55typedef FnExecute = void Function (String statement);
6+ typedef ErrorHandler = void Function (String error);
67
78void createSession ({
89 required FnExecute execute,
You can’t perform that action at this time.
0 commit comments