FreeDrawController class
Controller for free draw widget.
Constructors
- FreeDrawController.new({Color strokeColor = Colors.black, double strokeWidth = 1})
Properties
- count → int
-
Number of valid layers in the history. (exclude undone layers).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- redo → VoidCallback
-
Redo the last undone operation.
Do nothing if there is no undone operation.
no setter
- redoAll → VoidCallback
-
Redo all undone operations.
Do nothing if there is no undone operation.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeColor ↔ Color
-
getter/setter pair
- strokeWidth ↔ double
-
getter/setter pair
- total → int
-
Number of total layers in the history. (include undone layers).
no setter
- undo → VoidCallback
-
Undo the last operation.
Do nothing if there is no operation.
no setter
- undoAll → VoidCallback
-
Undo all operations (aka clear all).
Do nothing if there is no operation.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toImage(
[double? pixelRatio]) → Image - Capture the current canvas to an image.
-
toImageAsPngBytes(
[double? pixelRatio]) → Future< Uint8List> - refer to toImage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited