ScatterTooltipItem constructor

ScatterTooltipItem(
  1. String text, {
  2. TextStyle? textStyle,
  3. double? bottomMargin,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. List<TextSpan>? children,
})

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;