of static method
Looks up an instance of the FirebaseUILocalizations on the BuildContext.
To obtain labels, use labelsOf.
Implementation
static FirebaseUILocalizations of(BuildContext context) {
final l = Localizations.of<FirebaseUILocalizations>(
context,
FirebaseUILocalizations,
);
if (l != null) {
return l;
}
final defaultTranslation = getFirebaseUITranslation(kDefaultLocale);
return FirebaseUILocalizations(kDefaultLocale, defaultTranslation);
}