fontStyle property

TextStyle fontStyle

Implementation

TextStyle get fontStyle {
  try {
    return FontType.values.firstWhere((font) => font.name == this).fontStyle;
  } on Exception catch (_) {
    return FontType.roboto.fontStyle;
  }
}