Text constructor

Text({
  1. required double x,
  2. required double y,
  3. required String text,
  4. String? id,
  5. Color? fill,
  6. Color? stroke,
  7. StrokeWidth? strokeWidth,
  8. StrokeDasharray? strokeDasharray,
  9. String? style,
  10. String? transform,
  11. Unit? unit,
  12. Visibility? visibility = Visibility.inherit,
  13. TextAnchor textAnchor = TextAnchor.start,
  14. AlignmentY alignmentY = AlignmentY.bottom,
  15. FontSize? fontSize,
})

Text constructor x left top x coordinate of the text y left top y coordinate of the text text text that will be displayed id widget id to made some reference in the SVG file fill fill color stroke stroke line color strokeWidth stroke line width strokeDasharray stroke line dash style style custom css style transform custom css transformation unit unit used in the parameters, default is px (pixel) visibility visibility of the element, default is inherit

Implementation

Text(
    {required this.x,
    required this.y,
    required this.text,
    this.id,
    this.fill,
    this.stroke,
    this.strokeWidth,
    this.strokeDasharray,
    this.style,
    this.transform,
    this.unit,
    this.visibility = Visibility.inherit,
    this.textAnchor = TextAnchor.start,
    this.alignmentY = AlignmentY.bottom,
    this.fontSize});