getFontFamily function

String getFontFamily(
  1. FontFamily fontFamily
)

returns the Font Family Name

Implementation

String getFontFamily(FontFamily fontFamily) {
  return (fontFamily.toString().replaceAll('FontFamily.', ''))
      .replaceAll('_', ' ');
}