DrawText method

void DrawText(
  1. String text,
  2. num posX,
  3. num posY,
  4. num fontSize,
  5. Color color,
)

Draw text (using default font)

Implementation

void DrawText(
  String text,
  num posX,
  num posY,
  num fontSize,
  Color color,
) => run(
  () => _debugLabels.DrawText(text, posX, posY, fontSize, color),
  () => _flat.DrawText(
    String$.ValueOrNull(text),
    posX.toInt(),
    posY.toInt(),
    fontSize.toInt(),
    color,
  ),
);