FlDotCrossPainter class
This class is an implementation of a FlDotPainter that draws a cross (X mark) shape
- Inheritance
-
- Object
- FlDotPainter
- FlDotCrossPainter
Constructors
- FlDotCrossPainter({Color color = Colors.green, double size = 8.0, double width = 2.0})
-
The
color
andwidth
properties determines the color and thickness of the cross shape,size
determines the width and height of the shape.
Properties
- color ↔ Color
-
The fill color to use for the X mark
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainColor → Color
-
Used to show default UIs, for example defaultScatterTooltipItem
no setteroverride
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ double
-
Determines size (width and height) of shape.
getter/setter pair
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - width ↔ double
-
Determines thickness of X mark.
getter/setter pair
Methods
-
draw(
Canvas canvas, FlSpot spot, Offset offsetInCanvas) → void -
Implementation of the parent class to draw the cross
override
-
getSize(
FlSpot spot) → Size -
Implementation of the parent class to get the size of the circle
override
-
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
inherited
-
lerp(
FlDotPainter a, FlDotPainter b, double t) → FlDotPainter -
override
-
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