tryToGetFontByName static method
Implementation
static String? tryToGetFontByName(String? font) {
if (font == null) {
return null;
}
if (isCustomFontExist(font)) {
return font;
}
if (isGoogleFontExist(font)) {
return font;
}
return null;
}