Text class Null safety

Class to generate SVG rectangles

Constructors:

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});
Implemented types

Constructors

Text({required double x, required double y, required String text, String? id, Color? fill, Color? stroke, StrokeWidth? strokeWidth, StrokeDasharray? strokeDasharray, String? style, String? transform, Unit? unit, Visibility? visibility = Visibility.inherit, TextAnchor textAnchor = TextAnchor.start, AlignmentY alignmentY = AlignmentY.bottom, 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

Properties

alignmentY AlignmentY
read / write
fill Color?
read / writeoverride
fontSize FontSize?
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String?
read / writeoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stroke Color?
read / writeoverride
strokeDasharray StrokeDasharray?
read / writeoverride
strokeWidth StrokeWidth?
read / writeoverride
style String?
read / writeoverride
text String
read / write
textAnchor TextAnchor
read / write
transform String?
read / writeoverride
unit Unit?
read / writeoverride
visibility Visibility?
read / writeoverride
x double
read / write
y double
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toXML() String
Convert the Svg structure to XML string
override

Operators

operator ==(Object other) bool
The equality operator.
inherited