FlSpot class

Represents a conceptual position in cartesian (axis based) space.

Implementers

Constructors

FlSpot(double x, double y)
x determines cartesian (axis based) horizontally position 0 means most left point of the chart
const

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
Used for equality check, see EquatableMixin.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
x double
final
y double
final

Methods

copyWith({double? x, double? y}) FlSpot
Copies current FlSpot to a new FlSpot, and replaces provided values.
isNotNull() bool
Determines if x and y is not null.
isNull() bool
Determines if x or y is null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Prints x and y coordinates of FlSpot list
override

Operators

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

Static Methods

lerp(FlSpot a, FlSpot b, double t) FlSpot
Lerps a FlSpot based on t value, check Tween.lerp.

Constants

nullSpot → const FlSpot
Used for splitting lines, or maybe other concepts.
zero → const FlSpot
Sets zero for x and y