PaintEditorConfigs class

Configuration options for a paint editor.

PaintEditorConfigs allows you to define settings for a paint editor, including whether the editor is enabled, which drawing tools are available, initial settings for drawing, and more.

Example usage:

PaintEditorConfigs(
  enabled: true,
  hasOptionFreeStyle: true,
  hasOptionArrow: true,
  hasOptionLine: true,
  hasOptionRect: true,
  hasOptionCircle: true,
  hasOptionDashLine: true,
  canToggleFill: true,
  canChangeLineWidth: true,
  initialFill: false,
  showColorPicker: true,
  initialStrokeWidth: 10.0,
  initialColor: const Color(0xffff0000),
  initialPaintMode: PaintModeE.freeStyle,
);

Constructors

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.
const

Properties

canChangeLineWidth bool
Indicating whether the line width can be changed.
final
canToggleFill bool
Indicating whether the fill option can be toggled.
final
enabled bool
Indicates whether the paint editor is enabled.
final
freeStyleHighPerformanceHero bool
Enables high-performance hero-animations for free-style drawing when set to true.
final
freeStyleHighPerformanceMoving bool?
Enables high-performance moving for free-style drawing when set to true.
final
freeStyleHighPerformanceScaling bool?
Enables high-performance scaling for free-style drawing when set to true.
final
hashCode int
The hash code for this object.
no setterinherited
hasOptionArrow bool
Indicating whether the arrow drawing option is available.
final
hasOptionCircle bool
Indicating whether the circle drawing option is available.
final
hasOptionDashLine bool
Indicating whether the dash line drawing option is available.
final
hasOptionEraser bool
Indicating whether the eraser option is available.
final
hasOptionFreeStyle bool
Indicating whether the free-style drawing option is available.
final
hasOptionLine bool
Indicating whether the line drawing option is available.
final
hasOptionRect bool
Indicating whether the rectangle drawing option is available.
final
initialColor Color
Indicates the initial drawing color.
final
initialFill bool
Indicates the initial fill state.
final
initialPaintMode PaintModeE
Indicates the initial paint mode.
final
initialStrokeWidth double
Indicates the initial stroke width.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showColorPicker bool
Indicating whether the color picker is visible.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited