CanvasController class

Constructors

CanvasController.new(CanvasExportCallback exportCanvasCallback)

Properties

canvasKey GlobalKey<State<StatefulWidget>>
no setter
components List<Widget>
no setter
drawingPoints List<Offset>
no setter
exportCanvasCallback CanvasExportCallback
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isDrawing bool
no setter
isErasing bool
no setter
onStateChanged CanvasStateCallback
getter/setter pair
positions List<Offset>
no setter
rotations List<double>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int
no setter

Methods

addComponent(Widget component, Offset position) → void
addDrawingPoint(Offset point) → void
clearAll() → void
deleteComponent(int index) → void
deselectComponent() → void
disableDrawingErasing() → void
enableDrawing() → void
enableErasing() → void
exportCanvas() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redo() → void
removeDrawingPoint(Offset point) → void
rotateComponent(int index) → void
selectComponent(int index) → void
setOnStateChanged(CanvasStateCallback callback) → void
toString() String
A string representation of this object.
inherited
undo() → void
updatePosition(int index, Offset position) → void

Operators

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