TextSymbol constructor
- String text = '',
- Color color = const Color(0xFF000000),
- double size = 8.0,
- HorizontalAlignment horizontalAlignment = HorizontalAlignment.center,
- VerticalAlignment verticalAlignment = VerticalAlignment.middle,
Creates a text symbol with the given size, text, and color along with the horizontal and vertical alignment relative to the mid-point of this symbol.
Parameters:
text
— The text to be displayed.color
— The color of the text symbol.size
— The size of the text symbol.horizontalAlignment
— The horizontal alignment of the text.verticalAlignment
— The vertical alignment of the text.