withFallbacks<T> static method
T
withFallbacks<T>(
- T callback()
Implementation
static T withFallbacks<T>(T Function() callback) {
if (_fallbackFontsEnabled) {
return callback();
} else {
_fallbackFontsEnabled = true;
final result = callback();
_fallbackFontsEnabled = false;
return result;
}
}