PaintEditorConfigs constructor
const
PaintEditorConfigs({
- bool enabled = true,
- bool hasOptionFreeStyle = true,
- bool hasOptionArrow = true,
- bool hasOptionLine = true,
- bool hasOptionRect = true,
- bool hasOptionCircle = true,
- bool hasOptionDashLine = true,
- bool hasOptionEraser = true,
- bool canToggleFill = true,
- bool canChangeLineWidth = true,
- bool initialFill = false,
- bool showColorPicker = true,
- bool? freeStyleHighPerformanceScaling,
- bool? freeStyleHighPerformanceMoving,
- bool freeStyleHighPerformanceHero = false,
- double initialStrokeWidth = 10.0,
- Color initialColor = const Color(0xffff0000),
- PaintModeE initialPaintMode = PaintModeE.freeStyle,
Creates an instance of PaintEditorConfigs with optional settings.
By default, the editor is enabled, and most drawing tools are enabled. Other properties are set to reasonable defaults.
Implementation
const PaintEditorConfigs({
this.enabled = true,
this.hasOptionFreeStyle = true,
this.hasOptionArrow = true,
this.hasOptionLine = true,
this.hasOptionRect = true,
this.hasOptionCircle = true,
this.hasOptionDashLine = true,
this.hasOptionEraser = true,
this.canToggleFill = true,
this.canChangeLineWidth = true,
this.initialFill = false,
this.showColorPicker = true,
this.freeStyleHighPerformanceScaling,
this.freeStyleHighPerformanceMoving,
this.freeStyleHighPerformanceHero = false,
this.initialStrokeWidth = 10.0,
this.initialColor = const Color(0xffff0000),
this.initialPaintMode = PaintModeE.freeStyle,
}) : assert(initialStrokeWidth > 0, 'initialStrokeWidth must be positive');