discontinuedPackage vector_graphics_compiler_plus has been discontinued and replaced by vector_graphics_compiler.

Path class

An immutable collection of PathCommands.

Annotations
  • @immutable

Constructors

Path({List<PathCommand> commands = const <PathCommand>[], PathFillType fillType = PathFillType.nonZero})
Creates a new immutable collection of PathCommands.

Properties

commands → Iterable<PathCommand>
The commands this path contains.
no setter
fillType → PathFillType
The fill type of this path, defaulting to PathFillType.nonZero.
final
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
Whether this path has any commands.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bounds() → Rect
Compute the bounding box for the given path segment.
dashed(List<double> intervals) → Path
Creates a dashed version of this path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFlutterString() → String
Returns a string that prints the dart:ui code to create this path.
toString() → String
A string representation of this object.
override
transformed(AffineMatrix matrix) → Path
Creates a new path whose commands and points are transformed by matrix.
withFillType(PathFillType type) → Path
Creates a copy of this path, replacing the current fillType with type.

Operators

operator ==(Object other) → bool
The equality operator.
override