PaintingController constructor
PaintingController({})
Creates an instance of the PaintingController
with initial settings.
strokeWidth
: The initial stroke width.color
: The initial color.mode
: The initial painting mode (e.g., line, circle, rectangle).fill
: Whether the initial mode should fill the shape (e.g., circle or rectangle).strokeMultiplier
: The multiplier for the stroke width.
Implementation
PaintingController({
required double strokeWidth,
required Color color,
required PaintModeE mode,
required bool fill,
required int strokeMultiplier,
required this.opacity,
}) {
_strokeWidth = strokeWidth;
_color = color;
_mode = mode;
_fill = fill;
_strokeMultiplier = strokeMultiplier;
}