getFontWeight function

FontWeight getFontWeight(
  1. FontWeightEnum enum0
)

Implementation

FontWeight getFontWeight(FontWeightEnum enum0) {
  FontWeight fontWeight;
  switch (enum0) {
    case FontWeightEnum.bold:
      fontWeight = FontWeight.w700;
      break;
    case FontWeightEnum.semiBold:
      fontWeight = FontWeight.w600;
      break;
    case FontWeightEnum.medium:
      fontWeight = FontWeight.w500;
      break;
    case FontWeightEnum.light:
      fontWeight = FontWeight.w300;
      break;
    default:
      fontWeight = FontWeight.w400;
      break;
  }
  return fontWeight;
}