File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ abstract class ChannelModelEventApi {
160
160
ModelEventData channelEvent ();
161
161
}
162
162
163
+ @EventChannelApi ()
164
+ abstract class ChannelModelEventApi {
165
+ ModelStateData channelState ();
166
+
167
+ ModelEventData channelEvent ();
168
+ }
169
+
163
170
@HostApi ()
164
171
abstract class ChannelMainModel {
165
172
void resetEvent ();
Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ Stream<ModelStateData> channelState( {String instanceName = ''}) {
647
647
return event as ModelStateData ;
648
648
});
649
649
}
650
-
650
+
651
651
Stream <ModelEventData > channelEvent ( {String instanceName = '' }) {
652
652
if (instanceName.isNotEmpty) {
653
653
instanceName = '.$instanceName ' ;
@@ -658,7 +658,7 @@ Stream<ModelEventData> channelEvent( {String instanceName = ''}) {
658
658
return event as ModelEventData ;
659
659
});
660
660
}
661
-
661
+
662
662
663
663
class ChannelMainModel {
664
664
/// Constructor for [ChannelMainModel] . The [binaryMessenger] named argument is
You can’t perform that action at this time.
0 commit comments