PathOp class final
Canvas.drawPath: SVG path data d; or the Path builder's calls
commands; or points joined by straight lines (closed back to the
first). trimStart–trimEnd of its length (PathMetric.extractPath).
Constructors
-
PathOp({String? id, Expr<
bool> ? when, Json extra = const {}, List<Expr< paint = const [], String? hit, String? d, List<DrawPaint> >PathCommand> ? commands, Expr<List< ? points, bool close = false, PathFillType fillType = PathFillType.nonZero, Expr<Vec?> >double> trimStart = const Expr(0.0), Expr<double> trimEnd = const Expr(1.0)}) -
const
Properties
- close → bool
-
final
-
commands
→ List<
PathCommand> ? -
Without d: the path built call by call, as Flutter code builds it
(
Path()..moveTo(..)..quadraticBezierTo(..)), exact numbers and no SVG text in between.final - d → String?
-
SVG path data; may hold
${...}.final - extra → Json
-
Keys this version doesn't model.
finalinherited
- fillType → PathFillType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hit → String?
-
The region id a pointer on this shape reports (
${result.region}).finalinherited - id → String?
-
finalinherited
- op → String
-
The JSON
op.no setteroverride -
paint
→ List<
Expr< DrawPaint> > -
Each paint draws the shape once, in order. Empty: nothing is drawn
(with hit, an invisible target).
finalinherited
-
points
→ Expr<
List< ?Vec?> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trimEnd
→ Expr<
double> -
final
-
trimStart
→ Expr<
double> -
final
-
when
→ Expr<
bool> ? -
Drawn only while it holds (Flutter's
if (cond)); null: always.finalinherited
Methods
-
copyWith(
{String? id, Expr< bool> ? when, List<Expr< ? paint, String? hit, String? d, List<DrawPaint> >PathCommand> ? commands, Expr<List< ? points, bool? close, PathFillType? fillType, Expr<Vec?> >double> ? trimStart, Expr<double> ? trimEnd}) → PathOp -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited