PainterController class
- Inheritance
-
- Object
- ChangeNotifier
- PainterController
Constructors
Properties
- backgroundColor ↔ Color
-
The color of the canvas
getter/setter pair
- backgroundImage ↔ Image?
-
Sets a background image.
You can load images as you would normally do: From an asset, from the network, from memory
getter/setter pair
- canRedo → bool
-
no setter
- canUndo → bool
-
no setter
- drawColor ↔ Color
-
The color of the line
getter/setter pair
- drawMode ↔ bool
-
Use this to set mode as draw or transform
if you plan to use buttons to pan and zoom set as true
true by default
getter/setter pair
- eraser ↔ bool
-
getter/setter pair
- erasethickness ↔ double
-
Eraser thickness
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- interactionController ↔ TransformationController
-
The controller that can be used to pan and zoom
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness ↔ double
-
sets the line thickness
getter/setter pair
- widgetSize ↔ Size?
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
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
-
getPathBytes(
) → Future< Uint8List> - gets the Path drawn as Uint8List
-
getPNGBytes(
) → Future< Uint8List> - gets the Image and Paths drawn as Uint8List
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
redo(
) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited