TextBoxComponent<T extends TextRenderer> constructor

TextBoxComponent<T extends TextRenderer>({
  1. String? text,
  2. T? textRenderer,
  3. TextBoxConfig? boxConfig,
  4. double? pixelRatio,
  5. Vector2? position,
  6. Vector2? scale,
  7. double? angle,
  8. Anchor? anchor,
  9. int? priority,
})

Implementation

TextBoxComponent({
  String? text,
  T? textRenderer,
  TextBoxConfig? boxConfig,
  double? pixelRatio,
  Vector2? position,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
})  : _boxConfig = boxConfig ?? TextBoxConfig(),
      pixelRatio = pixelRatio ?? window.devicePixelRatio,
      super(
        text: text,
        textRenderer: textRenderer,
        position: position,
        scale: scale,
        angle: angle,
        anchor: anchor,
        priority: priority,
      );