TextGameComponent constructor
Implementation
TextGameComponent({
required this.text,
required Vector2 position,
TextStyle? style,
}) {
this.position = this.position.copyWith(
position: position,
);
_textPaint = TextPaint(
style: style,
);
}