TypeChannel<T extends Object> class Null safety

A named channel used to handle communication between platform types.

Constructors

TypeChannel(TypeChannelMessenger messenger, String name)
Default constructor for TypeChannel.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
messenger TypeChannelMessenger
Handles communication and manages instances for type channels.
final
name String
The name of the channel.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

createNewInstancePair(T instance, List<Object?> arguments, {required bool owner}) Future<PairedInstance?>
Creates a new PairedInstance to be paired with instance.
disposeInstancePair(T instance) Future<void>
Removes an instance pair containing instance from messenger.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeHandler() → void
Unregister a TypeChannelHandler for channel with name in messenger.
sendInvokeMethod(T instance, String methodName, List<Object?> arguments) Future<Object?>
Attempt to invoke a method on PairedInstance paired with instance.
sendInvokeStaticMethod(String methodName, List<Object?> arguments) Future<Object?>
Invoke static method methodName on type channel of name.
setHandler(TypeChannelHandler<T> handler) → void
Register a TypeChannelHandler for channel with name in messenger.
toString() String
A string representation of this object.
inherited

Operators

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