FlDotPainter class abstract
This class contains the interface that all DotPainters should conform to.
Constructors
- FlDotPainter()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainColor → Color
-
Used to show default UIs, for example defaultScatterTooltipItem
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- 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
Methods
-
draw(
Canvas canvas, FlSpot spot, Offset offsetInCanvas) → void - This method should be overridden to draw the dot shape.
-
getSize(
FlSpot spot) → Size - This method should be overridden to return the size of the shape.
-
hitTest(
FlSpot spot, Offset touched, Offset center, double extraThreshold) → bool - Used to implement touch behaviour of this dot, for example, it behaves like a square of getSize Check FlDotCirclePainter.hitTest for an example of an implementation
-
lerp(
FlDotPainter a, FlDotPainter b, double t) → FlDotPainter -
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