fontWeightToString method
Implementation
String fontWeightToString(FontWeight? fontWeight) {
switch (fontWeight) {
case FontWeight.w100:
return 'ultraLight';
case FontWeight.w200:
return 'thin';
case FontWeight.w300:
return 'light';
case FontWeight.w400:
return 'regular';
case FontWeight.w500:
return 'medium';
case FontWeight.w600:
return 'semibold';
case FontWeight.w700:
return 'bold';
case FontWeight.w800:
return 'heavy';
case FontWeight.w900:
return 'black';
default:
return 'regular';
}
}