Line data Source code
1 : part of 'interfaces.nativechannels.dart'; 2 : 3 : abstract class IPlatformEntrypoint { 4 : final String id; 5 : final String mainChannelId; 6 : 7 : final MethodChannel methodChannel; 8 : final EventChannel eventChannel; 9 : final CallBacksController callbacksController; 10 : 11 2 : IPlatformEntrypoint({ 12 : required this.id, 13 : required this.mainChannelId, 14 : required this.methodChannel, 15 : required this.eventChannel, 16 : required this.callbacksController, 17 : }); 18 : 19 : /// A broadcast stream of events. 20 : Stream<EventMessage> get eventMessageStream; 21 : 22 : Future<Message> send(Message request); 23 : 24 : Future<CancelListening> startListening({ 25 : required Message message, 26 : required MultiUseCallback<MirrorMethodCall, Error> callback, 27 : }); 28 : 29 : void dispose(); 30 : }