DrawingController constructor
DrawingController({
- DrawConfig? config,
- 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());
}