Linear class

Tuple used with Curve.linear. The optional arguments are percentages between 0-100.

e.g.,

Linear(0.2); // Becomes "0.2"
Linear(0.2, 10); // Becomes "0.2 10%"
Linear(0.2, 10, 5.5); // Becomes "0.2 10% 5.5%"

Constructors

Linear(double n, [double? p1, double? p2])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
n double
final
p1 double?
final
p2 double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
no setter

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