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