legendTextBuilder property

TextComponent<TextRenderer> Function(String tag, int i, Color color, Vector2 position) legendTextBuilder
getter/setter pair

@en: default legend text builder

@zh: 默认图例文字构建器

Implementation

TextComponent Function(String tag, int i, Color color, Vector2 position)
    legendTextBuilder = (tag, i, color, position) {
  return TextComponent(
    text: tag,
    position: Vector2(position.x + 40, position.y - 6),
  );
};