TextNode constructor

TextNode({
  1. String? text,
  2. TextStyle? style,
  3. TextAlign? textAlign,
  4. TextDirection? textDirection,
  5. Vector2? position,
  6. Vector2? scale,
  7. double? angle,
  8. Anchor? anchor,
  9. bool? enabled,
  10. int? priority,
  11. 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;