ScatterSpot class
Defines information about a spot in the ScatterChart
Constructors
- ScatterSpot(double x, double y, {bool? show, FlDotPainter? dotPainter})
-
You can change
show
value to show or hide the spot,x
, andy
defines the location of spot in the ScatterChart,radius
defines the size of spot, andcolor
defines the color of it.
Properties
- defaultLabel → String
-
no setter
- dotPainter → FlDotPainter
-
Determines shape of the spot
final
- 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
- show → bool
-
Determines show or hide the spot.
final
- size → Size
-
no setter
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - x → double
-
finalinherited
- y → double
-
finalinherited
Methods
-
copyWith(
{double? x, double? y, bool? show, FlDotPainter? dotPainter}) → ScatterSpot -
Copies current FlSpot to a new FlSpot,
and replaces provided values.
override
-
isNotNull(
) → bool -
Determines if x and y is not null.
inherited
-
isNull(
) → bool -
Determines if x or y is null.
inherited
-
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
Static Methods
-
lerp(
ScatterSpot a, ScatterSpot b, double t) → ScatterSpot -
Lerps a ScatterSpot based on
t
value, check Tween.lerp.override