Curve class abstract interface Curves

Curves are typically not used directly, instead being passed to Line.curve and Area.curve. However, you can define your own curve implementation should none of the built-in curves satisfy your needs using the following interface; see the curveLinear source for an example implementation.

You can also use this low-level interface with a built-in curve type as an alternative to the line and area generators.

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

areaEnd() → void
Indicates the end of the current area segment.
areaStart() → void
Indicates the start of a new area segment.
lineEnd() → void
Indicates the end of the current line segment.
lineStart() → void
Indicates the start of a new line segment. Zero or more points will follow.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
point(num x, num y) → void
Indicates a new point in the current line segment with the given x- and y-values.
toString() String
A string representation of this object.
inherited

Operators

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