LuckySurfaceData<C extends Object, L extends LuckyLayout, F extends LuckyFrame> class final

渲染后端所需的数据;帧快照与图片视图由宿主持有。

Annotations

Constructors

LuckySurfaceData({required C config, required L layout, required int layoutGeneration, required F frame, required Listenable frameListenable, required LuckyImageSet images, required Listenable imagesListenable, required List<LuckyLayer<L, F>> layers, required LuckyHooks hooks, required double devicePixelRatio, TextScaler textScale = TextScaler.noScaling, required TextDirection textDirection, required LuckyPerformanceOptions performance, required bool isAnimating})
创建渲染输入;例如后端可用 frameListenable 驱动 CustomPainter。
const

Properties

config → C
当前不可变配置。
final
devicePixelRatio → double
设备像素比。
final
frame → F
复用的帧快照。
final
frameListenable → Listenable
帧重绘通知。
final
hashCode → int
The hash code for this object.
no setterinherited
hooks → LuckyHooks
绘制与生命周期钩子。
final
images → LuckyImageSet
已解析图片只读视图。
final
imagesListenable → Listenable
图片变化通知。
final
isAnimating → bool
当前是否处于运动阶段。
final
layers → List<LuckyLayer<L, F>>
用户绘制层。
final
layout → L
当前布局。
final
layoutGeneration → int
布局与热重载版本。
final
performance → LuckyPerformanceOptions
缓存与采样选项。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textDirection → TextDirection
文字整形方向。
final
textScale → TextScaler
测量与录制共用的文字缩放;默认倍率为 1,保留系统非线性缩放。
final

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