getFontWeight function
Implementation
FontWeight getFontWeight(Emphasis? emphasis) {
switch(emphasis) {
case Emphasis.HIGH:
return FontWeight.bold;//w700
case Emphasis.MEDIUM:
return FontWeight.w600;
case Emphasis.LOW:
return FontWeight.w500;
default:
return FontWeight.normal;//w400
}
}