Controller class

Inheritance
Available extensions

Constructors

Controller({double strokeWidth = 4.0, Color color = Colors.red, PaintMode mode = PaintMode.freeStyle, String text = '', bool fill = false})

Properties

brush Paint
no setter
busy bool
no setter
color Color
no setter
end Offset?
no setter
fill bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
mode PaintMode
no setter
naturalSize Size
getter/setter pair
offsets List<Offset?>
no setter
onTextUpdateMode bool
no setter
paintHistory List<PaintInfo>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaledStrokeWidth double
no setter
shouldFill bool
no setter
start Offset?
no setter
strokeWidth double
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addOffsets(Offset? offset) → void
addPaintInfo(PaintInfo paintInfo) → void
clear() → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
morePaper() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetStartAndEnd() → void
setColor(Color color) → void
setEnd(Offset? offset) → void
setInProgress(bool val) → void
setMode(PaintMode mode) → void
setStart(Offset? offset) → void
setStrokeWidth(double val) → void
setText(String val) → void
toString() String
A string representation of this object.
inherited
undo() → void
update({double? strokeWidth, Color? color, bool? fill, PaintMode? mode, String? text, int? strokeMultiplier}) → void

Operators

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