of static method

Implementation

static LiveKitLocalizations? of(BuildContext context) {
  LiveKitLocalizations? localizations = Localizations.of<LiveKitLocalizations>(context, LiveKitLocalizations);
  if (localizations == null) {
    if (defaultLocalizations == null) {
      defaultLocalizations = LiveKitLocalizationsEn();
    }
    return defaultLocalizations;
  }
  return localizations;
}