label method

Widget label(
  1. String text,
  2. TextStyle style
)

The label widget for text in style (already sized, coloured and weighted, Bold Text included). Not scaled by the text scaler: the key size bounds it.

Implementation

Widget label(String text, TextStyle style) => KeyLabel(text, style: style);