MethodChannelDispatcher class

Implementation of TypeChannelMessageDispatcher using a MethodChannel.

Mixed in types

Constructors

MethodChannelDispatcher(MethodChannel channel)
Default constructor for MethodChannelDispatcher.

Properties

channel MethodChannel
MethodChannel used to communicate with a platform TypeChannelMessenger.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCreateNewInstancePair(String channelName, PairedInstance remoteReference, List<Object?> arguments, {required bool owner}) Future<void>
Instantiate a new object instance for type channel of channelName.
override
sendDisposeInstancePair(PairedInstance pairedInstance) Future<void>
Communicate to another TypeChannelMessenger to dispose the instance pair containing pairedInstance.
override
sendInvokeMethod(String channelName, PairedInstance pairedInstance, String methodName, List<Object?> arguments) Future<Object?>
Invoke a method on the object instance that pairedInstance represents.
override
sendInvokeStaticMethod(String channelName, String methodName, List<Object?> arguments) Future<Object?>
Invoke a static method for type channel of channelName.
override
toString() String
A string representation of this object.
inherited

Operators

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