BrnIntl class
Bruno 多语言支持
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → Locale
-
final
- localizedResource → BaseBaseResource
-
获取当前语言下对应的资源,若为 null 则返回
BrnResourceZh
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- currentResource → BaseBaseResource
-
no setter
Static Methods
-
add(
Locale locale, BaseBaseResource resource) → void - 支持非内置的本地化能力
-
addAll(
Locale locale, List< BaseBaseResource> resources) → void - 支持非内置的本地化能力
-
i10n(
BuildContext context) → BaseBaseResource -
获取当前语言下
BrnBaseResource
资源 -
of(
BuildContext context) → BrnIntl - 获取BrnIntl实例