TextInterfaceComponent constructor

TextInterfaceComponent({
  1. required int id,
  2. required Vector2 position,
  3. String text = '',
  4. ValueChanged<bool>? onTapComponent,
  5. TextStyle? textConfig,
})

Implementation

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