TextComponent<T extends TextRenderer> constructor
TextComponent<T extends TextRenderer> ({})
Implementation
TextComponent({
String? text,
T? textRenderer,
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.key,
}) : _text = text ?? '',
_textRenderer = textRenderer ?? TextRendererFactory.createDefault<T>() {
updateBounds();
}