underline static method

List<int> underline(
  1. int weight
)

Implementation

static List<int> underline(int weight) {
  // ESC - n - Activar/desactivar subrayado (0-2)
  return [0x1B, 0x2D, weight.clamp(0, 2)];
}