ChartText constructor

const ChartText({
  1. Key? key,
  2. required String text,
  3. double x = 0,
  4. double y = 0,
  5. TextStyle? style,
  6. TextAnchor anchor = TextAnchor.start,
  7. TextBaseline baseline = TextBaseline.alphabetic,
  8. double rotation = 0,
  9. double? maxWidth,
})

Creates a chart text widget.

Implementation

const ChartText({
  super.key,
  required this.text,
  this.x = 0,
  this.y = 0,
  this.style,
  this.anchor = TextAnchor.start,
  this.baseline = TextBaseline.alphabetic,
  this.rotation = 0,
  this.maxWidth,
});