FlChannelWeb class

Web 插件注册入口。

Web 平台没有原生进程,事件通道由 Dart 侧本地事件流模拟。Dart 侧创建并监听通道后, JavaScript 可通过 flChannelSendEvent(name, data) 向 Flutter 发送事件。

Constructors

FlChannelWeb()

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
注册 Web 插件并暴露 JavaScript 事件入口。