toTextStyle method

TextStyle toTextStyle()

Provides a TextStyle object that can be used to style any Text with the selected Google font.

Implementation

TextStyle toTextStyle() {
  return GoogleFonts.getFont(fontFamily,
      fontWeight: fontWeight, fontStyle: fontStyle);
}