debugCheckHasLayrzAppLocalizations function

bool debugCheckHasLayrzAppLocalizations(
  1. BuildContext context
)

Implementation

bool debugCheckHasLayrzAppLocalizations(BuildContext context) {
  assert(() {
    if (Localizations.of<LayrzAppLocalizations>(context, LayrzAppLocalizations) == null) {
      throw FlutterError('LayrzAppLocalizations was used before it was initialized');
    }
    return true;
  }());
  return true;
}