TextBoxComponent<T extends TextRenderer> constructor

TextBoxComponent<T extends TextRenderer>({
  1. String? text,
  2. T? textRenderer,
  3. TextBoxConfig? boxConfig,
  4. Anchor? align,
  5. double? pixelRatio,
  6. Vector2? position,
  7. Vector2? size,
  8. Vector2? scale,
  9. double? angle,
  10. Anchor? anchor,
  11. Iterable<Component>? children,
  12. int? priority,
  13. void onComplete()?,
  14. ComponentKey? key,
})

Implementation

TextBoxComponent({
  super.text,
  T? super.textRenderer,
  TextBoxConfig? boxConfig,
  Anchor? align,
  double? pixelRatio,
  super.position,
  super.size,
  super.scale,
  super.angle,
  super.anchor,
  super.children,
  super.priority,
  this.onComplete,
  super.key,
})  : _boxConfig = boxConfig ?? const TextBoxConfig(),
      _fixedSize = size != null,
      align = align ?? Anchor.topLeft,
      pixelRatio = pixelRatio ??
          PlatformDispatcher.instance.views.first.devicePixelRatio;