LuckySurfaceData<C extends Object, L extends LuckyLayout, F extends LuckyFrame> constructor

const LuckySurfaceData<C extends Object, L extends LuckyLayout, F extends LuckyFrame>({
  1. required C config,
  2. required L layout,
  3. required int layoutGeneration,
  4. required F frame,
  5. required Listenable frameListenable,
  6. required LuckyImageSet images,
  7. required Listenable imagesListenable,
  8. required List<LuckyLayer<L, F>> layers,
  9. required LuckyHooks hooks,
  10. required double devicePixelRatio,
  11. TextScaler textScale = TextScaler.noScaling,
  12. required TextDirection textDirection,
  13. required LuckyPerformanceOptions performance,
  14. 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});