fontWeight method

StyleContext fontWeight(
  1. FontWeight weight
)

Implementation

StyleContext fontWeight(FontWeight weight) {
  textStyle(
    TextStyle(
      fontWeight: weight,
      fontVariations: [
        FontVariation.weight(weight.value.toDouble()),
      ],
    ),
  );
  return this;
}