getFontWeight function
Implementation
FontWeight getFontWeight(String fontWeight) {
if (fontWeight == "100") {
return FontWeight.w100;
} else if (fontWeight == "200") {
return FontWeight.w200;
} else if (fontWeight == "300") {
return FontWeight.w300;
} else if (fontWeight == "400") {
return FontWeight.w400;
} else if (fontWeight == "500") {
return FontWeight.w500;
} else if (fontWeight == "600") {
return FontWeight.w600;
} else if (fontWeight == "700") {
return FontWeight.w700;
} else if (fontWeight == "800") {
return FontWeight.w800;
} else if (fontWeight == "900") {
return FontWeight.w900;
}
return FontWeight.normal;
}