A set of Paths with different kinds of contours, for tests, benchmarks and examples of code that works on paths.
The paths are in the coordinates that they were drawn in, so they differ in size and position. byIndex and byName return them fitted into a given size, with their aspect ratio kept, and centered on the origin. Only roundRect takes its size directly, so it is never scaled by them.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
Static Methods
-
abstractShape(
) → Path -
alien1(
) → Path -
alien2(
) → Path -
byIndex(
int index, Size size) → Path -
The path with the given
index, fitted intosizewhile keeping its aspect ratio and centered on the origin. -
byName(
String name, Size size) → Path -
The path with the given
name, fitted intosizewhile keeping its aspect ratio and centered on the origin. -
clover(
) → Path -
flame(
) → Path -
invader1(
) → Path -
invader2(
) → Path -
invader3(
) → Path -
recycle(
) → Path -
roundRect(
Size size) → Path -
setup(
) → Path