TextLabel constructor

const TextLabel({
  1. required String text,
  2. required double x,
  3. required double y,
  4. TextStyle? style,
  5. TextAnchor anchor = TextAnchor.start,
  6. double rotation = 0,
})

Creates a text label.

Implementation

const TextLabel({
  required this.text,
  required this.x,
  required this.y,
  this.style,
  this.anchor = TextAnchor.start,
  this.rotation = 0,
});