typeToWeight static method

FontWeight typeToWeight(
  1. FontType? fontType
)

Implementation

static FontWeight typeToWeight(FontType? fontType) {
  switch (fontType) {
    case FontType.normal:
      return FontWeight.normal;
    case FontType.medium:
      return FontWeight.w500;
    case FontType.semiBold:
      return FontWeight.w600;
    case FontType.bold:
      return FontWeight.bold;
    default:
      return FontWeight.normal;
  }
}