PlatformEntrypoint class

An implementation of IPlatformEntrypoint that uses method channels.

Inheritance

Constructors

PlatformEntrypoint({required String id, required String mainChannelId, required MethodChannel methodChannel, required EventChannel eventChannel, required CallBacksController callBacksController})

Properties

callbacksController CallBacksController
finalinherited
eventChannel EventChannel
finalinherited
eventMessageStream Stream<EventMessage>
A broadcast stream of events.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
finalinherited
mainChannelId String
finalinherited
methodChannel MethodChannel
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
override
listenerCancelation(Message message) CancelListening
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Message request) Future<Message>
throws: ChannelInvalidAnswerException Exception
override
startListening({required Message message, required MultiUseCallback<MirrorMethodCall, Error> callback}) Future<CancelListening>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultListenerSetup({required dynamic namespace, required dynamic targetMethod, required dynamic targetMethodCancellation, Payload? args}) Message
Remember that proto3 doesn't allow required fields anymore. AND, Message was generated by our .proto config file. Because of this I put this 'factory' here as an extension.