currentResource property
BaseBaseResource
get
currentResource
Implementation
static BaseBaseResource get currentResource {
assert(
_current != null,
'No instance of BrnIntl was loaded. \n'
'Try to initialize the BrnLocalizationDelegate before accessing BrnIntl.currentResource.');
/// 若应用未做本地化,则默认使用 zh-CN 资源
_current ??= BrnIntl(BaseResourceZh.locale);
return _current!.localizedResource;
}