TextNode constructor
TextNode({ - String? text,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Vector2? position,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- bool? enabled,
- int? priority,
- Iterable<Node> children = const [],
})
Implementation
TextNode({
String? text,
TextStyle? style,
TextAlign? textAlign,
TextDirection? textDirection,
super.position,
super.scale,
super.angle,
super.anchor,
super.enabled,
super.priority,
super.children,
}) : _text = text ?? '',
_style = style ?? DEFAULT_STYLE,
_textAlign = textAlign ?? .start,
_textDirection = textDirection ?? .ltr;