EraseDrawable class
Free-style Erase Drawable .
- Inheritance
-
- Object
- Drawable
- PathDrawable
- EraseDrawable
Constructors
-
EraseDrawable({required List<
Offset> path, double strokeWidth = 1, }) -
Creates a EraseDrawable to erase
path
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether the drawable is hidden or not.
finalinherited
- isHidden → bool
-
no setterinherited
- isNotHidden → bool
-
no setterinherited
- paint → Paint
-
no setteroverride
-
path
→ List<
Offset> -
List of points representing the path to draw.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeWidth → double
-
The stroke width the path will be drawn with.
finalinherited
Methods
-
copyWith(
{List< Offset> ? path, double? strokeWidth}) → EraseDrawable -
Creates a copy of this but with the given fields replaced with the new values.
override
-
draw(
Canvas canvas, Size size) → void -
Draws the free-style path on the provided
canvas
of sizesize
.inherited -
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 other) → bool -
The equality operator.
inherited