FpsTextComponent<T extends TextRenderer> constructor

FpsTextComponent<T extends TextRenderer>({
  1. int windowSize = 60,
  2. int decimalPlaces = 0,
  3. T? textRenderer,
  4. Vector2? position,
  5. Vector2? size,
  6. Vector2? scale,
  7. double? angle,
  8. Anchor? anchor,
  9. int? priority,
})

Implementation

FpsTextComponent({
  int windowSize = 60,
  this.decimalPlaces = 0,
  T? super.textRenderer,
  super.position,
  super.size,
  super.scale,
  super.angle,
  super.anchor,
  int? priority,
})  : fpsComponent = FpsComponent(windowSize: windowSize),
      super(
        priority: priority ?? double.maxFinite.toInt(),
      ) {
  add(fpsComponent);
}