PainterControllerValue class Null safety

The current paint mode, drawables and background values of a FlutterPainter widget.

Annotations

Constructors

PainterControllerValue({required PainterSettings settings, List<Drawable> drawables = const [], BackgroundDrawable? background, ObjectDrawable? selectedObjectDrawable})
Creates a new PainterControllerValue with the provided settings and background.
const

Properties

background BackgroundDrawable?
The current background drawable of the widget.
final
drawables List<Drawable>
Getter for the current drawables.
read-only
hashCode int
The hash code for this object.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedObjectDrawable ObjectDrawable?
The currently selected object drawable.
final
settings PainterSettings
The current paint mode of the widget.
final

Methods

copyWith({PainterSettings? settings, List<Drawable>? drawables, BackgroundDrawable? background = _NoBackgroundPassedBackgroundDrawable.instance, ObjectDrawable? selectedObjectDrawable = _NoObjectPassedBackgroundDrawable.instance}) PainterControllerValue
Creates a copy of this value but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Checks if two PainterControllerValue objects are equal or not.
override