UnitBezier class final

A timing curve from (0, 0) to (1, 1), with the control points (x1, y1) and (x2, y2).

x1 and x2 are between 0 and 1.

See mln_unit_bezier in the C API reference.

Constructors

UnitBezier({double x1 = 0, double y1 = 0, double x2 = 0, double y2 = 0})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x1 → double
final
x2 → double
final
y1 → double
final
y2 → double
final

Methods

copyWith({double? x1, double? y1, double? x2, double? y2}) → UnitBezier
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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