LuckyHooks class final
生命周期与绘制钩子;例如 LuckyHooks(afterStart: playSound)。
- Annotations
Constructors
- LuckyHooks({VoidCallback? beforeInit, VoidCallback? afterInit, LuckyDrawHook? beforeDraw, LuckyDrawHook? afterDraw, VoidCallback? afterStart, VoidCallback? beforeResize, VoidCallback? afterResize})
-
创建钩子集合;未提供的钩子不触发。
const
Properties
- afterDraw → LuckyDrawHook?
-
全部绘制内容之后。
final
- afterInit → VoidCallback?
-
每轮图片请求均有结论,初始化完成。
final
- afterResize → VoidCallback?
-
尺寸变化引起布局重算之后。
final
- afterStart → VoidCallback?
-
play 被接受之后。
final
- beforeDraw → LuckyDrawHook?
-
全部绘制内容之前。
final
- beforeInit → VoidCallback?
-
宿主开始初始化。
final
- beforeResize → VoidCallback?
-
尺寸变化引起布局重算之前。
final
- 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