Controller class
Gives access to manipulate the essential components like strokeWidth, Color and PaintMode.
- Annotations
Constructors
- Controller({double strokeWidth = 4.0, Color color = Colors.red, PaintMode mode = PaintMode.line, PaintingStyle paintStyle = PaintingStyle.stroke, String text = ""})
-
Constructor of the Controller class.
const
Properties
- color → Color
-
Tracks Color of the Paint method.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode → PaintMode
-
Tracks PaintMode of the current Paint method.
final
- paintStyle → PaintingStyle
-
Tracks PaintingStyle of the Paint method.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeWidth → double
-
Tracks strokeWidth of the Paint method.
final
- text → String
-
Any text.
final
Methods
-
copyWith(
{double? strokeWidth, Color? color, PaintMode? mode, PaintingStyle? paintingStyle, String? text}) → Controller - copyWith Method to access immutable controller.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override