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