DrawingController constructor

DrawingController({
  1. DrawConfig? config,
  2. PaintContent? content,
})

Implementation

DrawingController({DrawConfig? config, PaintContent? content}) {
  _history = <PaintContent>[];
  _currentIndex = 0;
  realPainter = RePaintNotifier();
  painter = RePaintNotifier();
  drawConfig = SafeValueNotifier<DrawConfig>(
      config ?? DrawConfig.def(contentType: SimpleLine));
  setPaintContent(content ?? SimpleLine());
}