CubicBezier class
A helper class that encapsulates the parameters of a cubic bezier curve.
A cubic bezier curve is defined by three points. The curve starts at the current point, ends at (x3, y3), and bends according to the points (x1, y1) and (x2, y2).
- Annotations
Constructors
- CubicBezier({required double x1, required double y1, required double x2, required double y2, required double x3, required double y3})
-
Creates a CubicBezier object with given parameters.
const
- CubicBezier.defaultCurve()
-
Creates a default CubicBezier object with predefined parameters.
factory
Properties
- hashCode → int
-
Used for comparing hashCodes
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x1 → double
-
The x-coordinate of the first control point.
final
- x2 → double
-
The x-coordinate of the second control point.
final
- x3 → double
-
The x-coordinate of the end point.
final
- y1 → double
-
The y-coordinate of the first control point.
final
- y2 → double
-
The y-coordinate of the second control point.
final
- y3 → double
-
The y-coordinate of the end point.
final
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 -
Used for comparing if object is equal to CubicBezier
override