of<T extends QudsLanguage> static method
Get the injected language in the BuildContext object
Implementation
static T of<T extends QudsLanguage>(BuildContext context) {
var _inhLang =
context.dependOnInheritedWidgetOfExactType<_InheritedLanguage>();
assert(_inhLang != null, 'There is no TranslatedWidget in the upper tree');
assert(_inhLang!.language != null, 'No such language is supported');
return _inhLang!.language as T;
}