TextInterfaceComponent constructor
TextInterfaceComponent({})
Implementation
TextInterfaceComponent({
required super.id,
required super.position,
this.text = '',
super.onTapComponent,
TextStyle? textConfig,
}) : super(
size: Vector2.zero(),
) {
this.textConfig = TextPaint(style: textConfig);
}