FlEvent class
- Inheritance
-
- Object
- EventChannel
- FlEvent
Constructors
- FlEvent(String name, [MethodCodec codec = const StandardMethodCodec(), BinaryMessenger? binaryMessenger])
Properties
- binaryMessenger → BinaryMessenger
-
The messenger which sends the bytes for this channel.
no setterinherited
- codec → MethodCodec
-
The message codec used by this channel, not null.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
no setter
- name → String
-
The logical channel on which communication happens, not null.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stream → Stream?
-
no setter
Methods
-
dispose(
) → Future< void> - 关闭并销毁消息通道
-
listen<
T> (FlEventListenData onData, {FlEventListenError? onError, FlEventListenDone? onDone, bool? cancelOnError}) → bool - 添加消息流监听
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → bool - 暂停消息流监听
-
receiveBroadcastStream(
[dynamic arguments]) → Stream -
Sets up a broadcast stream for receiving events on this channel.
inherited
-
resume(
) → bool - 重新开始监听
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited