convertStringToWeight method

FontWeight convertStringToWeight()

Implementation

FontWeight convertStringToWeight() {
  switch (fontStyle) {
    case 'bold':
      return FontWeight.bold;
    default:
      return FontWeight.normal;
  }
}