UDocDrawController class
Tool and style state shared by the toolbar and every UDocShapeLayer.
- Inheritance
-
- Object
- ChangeNotifier
- UDocDrawController
Constructors
- UDocDrawController({UDocDrawTool tool = UDocDrawTool.none, Color strokeColor = const Color(0xFFE53935), Color? fillColor, double strokeWidth = 3, double opacity = 1, double fontSize = 18})
Properties
- bold ↔ bool
-
getter/setter pair
- constrain ↔ bool
-
Squares / circles / 45° lines (also while Shift is held).
getter/setter pair
- dashed ↔ bool
-
getter/setter pair
- fillColor ↔ Color?
-
getter/setter pair
- fontSize ↔ double
-
Logical pixels at 100 % zoom.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isActive → bool
-
no setter
- lastShape → UDocDrawTool
-
The shape the toolbar's shape button selects (the last one used).
no setter
- opacity ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedId ↔ String?
-
getter/setter pair
- strokeColor ↔ Color
-
getter/setter pair
- strokeWidth ↔ double
-
Logical pixels at 100 % zoom.
getter/setter pair
- tool ↔ UDocDrawTool
-
getter/setter pair
- videoDuration ↔ Duration
-
How long a drawing stays on a video frame.
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
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
-
toggle(
UDocDrawTool value) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Constants
-
shapeTools
→ const List<
UDocDrawTool>