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