LayerPainter constructor

LayerPainter({
  1. required LayerContext context,
  2. required ContextAccessor accessor,
})

启用 repaint 机制重绘 CusotmPainter

Implementation

LayerPainter({required this.context, required this.accessor}):super(repaint: context);