CanvasElement constructor

CanvasElement([
  1. BindingContext? context
])

Implementation

CanvasElement([BindingContext? context])
    : super(
        context,
        isReplacedElement: true,
        isDefaultRepaintBoundary: true,
        defaultStyle: _defaultStyle,
      ) {
  painter = CanvasPainter(repaint: repaintNotifier);
}