getFontCache method
Implementation
Font? getFontCache(String fontFamily, String fontStyle, String fontWeight) {
final cache = '$fontFamily-$fontStyle-$fontWeight';
if (!_fontCache.containsKey(cache)) {
_fontCache[cache] = getFont(fontFamily, fontStyle, fontWeight);
}
return _fontCache[cache];
}