withFallbacks<T> static method

T withFallbacks<T>(
  1. T callback()
)

Implementation

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