labelWeightFor method

FontWeight labelWeightFor({
  1. required bool boldText,
})

The label weight under the platform's Bold Text setting: three steps heavier (w400 → w700, w600 → w900), so roles keep their weight order instead of all becoming bold.

Implementation

FontWeight labelWeightFor({required bool boldText}) => boldText
    ? cssFontWeight(math.min(labelWeight.value + 300, 900))
    : labelWeight;