PluginRegistry class Null safety

This class was previously separate from Registrar but was merged into it as part of a simplification of the web plugins API.

Inheritance
Available Extensions
Annotations
  • @Deprecated('Use Registrar instead. ' 'This feature was deprecated after v1.26.0-18.0.pre.')

Constructors

PluginRegistry([@Deprecated('This argument is ignored. ' 'This feature was deprecated after v1.26.0-18.0.pre.') BinaryMessenger? binaryMessenger])
Creates a Registrar.

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
messenger → BinaryMessenger
Returns this.
Deprecated('This property is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.24.0-7.0.pre.')">@Deprecated('This property is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.24.0-7.0.pre.')read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

handleFrameworkMessage(String channel, ByteData? data, PlatformMessageResponseCallback? callback) → Future<void>
Message handler for web plugins.
inherited
handlePlatformMessage(String channel, ByteData? data, PlatformMessageResponseCallback? callback) → Future<void>
Receives a platform message from the framework.
Deprecated('Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.')">@Deprecated('Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.')inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
registerMessageHandler() → void
Registers the registrar's message handler (handlePlatformMessage) with the engine, so that plugin messages are correctly dispatched to the relevant registered plugin.
inherited
registrarFor(Type key) → Registrar
Returns this. The argument is ignored.
Deprecated('This method is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.26.0-18.0.pre.')">@Deprecated('This method is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.26.0-18.0.pre.')
send(String channel, ByteData? message) → Future<ByteData?>
Sends a platform message from the platform side back to the framework.
inherited
setMessageHandler(String channel, MessageHandler? handler) → void
Set a callback for receiving messages from the platform plugins on the given channel, without decoding them.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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