ScatterTooltipItem class
Holds data of showing each item in the tooltip popup.
Constructors
-
ScatterTooltipItem(String text, {TextStyle? textStyle, double? bottomMargin, TextAlign? textAlign, TextDirection? textDirection, List<
TextSpan> ? children}) -
Shows a
text
withtextStyle
,textDirection
, and optionalchildren
in the tooltip popup,bottomMargin
is the bottom space from spot.
Properties
- bottomMargin → double
-
Defines bottom space from spot.
final
-
children
→ List<
TextSpan> ? -
List
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
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - text → String
-
Showing text.
final
- textAlign → TextAlign
-
TextAlign of the showing content.
final
- textDirection → TextDirection
-
Direction of showing text.
final
- textStyle → TextStyle?
-
Style of showing text.
final
Methods
-
copyWith(
{String? text, TextStyle? textStyle, double? bottomMargin, TextAlign? textAlign, TextDirection? textDirection, List< TextSpan> ? children}) → ScatterTooltipItem - Copies current ScatterTooltipItem to a new ScatterTooltipItem, and replaces provided values.
-
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