MessageChannelContext class abstract
Every MessageChannel (and on top of it NativeMethodChannel and NativeEventChannel) live within a MessageChannelContext.
This context is responsible for taking care of native part of message channel, or can be used to mock messages through MockMessageChannelContext.
- Implementers
Constructors
Properties
- 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
-
registerChannel(
String name, MessageChannel channel) → MessageSender - Registers channel for given name. Returns closure that can be used to send messages for this channel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forInitFunction(
Pointer< NativeFunction< messageChannelInitFunction) → MessageChannelContextMessageChannelContextInitFunction> > - Returns MessageChannelContext for given FFI function. The function must call 'irondash_init_message_channel_context' with provided argument and return the result. This is necessary to do in Flutter plugins where each plugin may have its own context and thus must have uniquely named init function.
-
getDefault(
) → MessageChannelContext - Returns default message context for this executable. Only ever use this if using native_shell core as part of the main application (i.e. not a plugin).