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