PathDrawPart class

Draw a path.

Inheritance

Constructors

PathDrawPart({bool autoClose = false, DrawPaint paint = const DrawPaint()})

Properties

autoClose bool
auto close the path.
final
canIgnore bool
Whether it is ture, it can be ignored.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key String
The key of transfer value.
no setteroverride
paint DrawPaint
The paint of shape.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transferValue Map<String, Object>
The value of transfer value.
no setterinherited
values Map<String, Object>
no setter

Methods

bezier2To(Offset target, Offset control) → void
The parameters of iOS and Android/flutter are inconsistent and need to be converted. For the time being, consistency cannot be guaranteed, delete it first.
bezier3To(Offset target, Offset control1, Offset control2) → void
Add bezier curve.
bezierTo({required Offset target, Offset? control1, Offset? control2, DrawPaint paint = const DrawPaint()}) → void
Add bezier curve.
lineTo(Offset point, [DrawPaint? paint]) → void
draw line to point.
move(Offset point) → void
move to point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetValue(Offset o) Map<String, Object>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited