wFontWeight function
Returns a font weight by name.
Supports: thin, extralight, light, normal, medium, semibold, bold, extrabold, black
Example:
FontWeight weight = wFontWeight(context, 'bold')!; // FontWeight.w700
FontWeight weight = wFontWeight(context, 'semibold')!; // FontWeight.w600
Implementation
FontWeight? wFontWeight(BuildContext context, String weightName) {
final theme = WindTheme.dataOf(context);
return theme.fontWeights[weightName];
}