ScatterTooltipItem constructor
ScatterTooltipItem(})
Shows a text with textStyle, textDirection
, and optional children in the tooltip popup,
bottomMargin
is the bottom space from spot.
Implementation
ScatterTooltipItem(
this.text, {
this.textStyle,
double? bottomMargin,
TextAlign? textAlign,
TextDirection? textDirection,
this.children,
}) : bottomMargin = bottomMargin ?? 8,
textAlign = textAlign ?? TextAlign.center,
textDirection = textDirection ?? TextDirection.ltr;