IntlMessagesLoader class
Loader of IntlMessages with registered IntlResourceDiscover based into package and pathPrefix.
Constructors
- IntlMessagesLoader(String? package, String? pathPrefix, {String extension = '.intl', bool autoLoad = true})
-
Returns a cached instance.
factory
Properties
- extension → String
-
The extension for the registered IntlResourceDiscover.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasLoadedAnyMessage → bool
-
Returns
true
if IntlMessages.autoDiscover has registered any LocalizedMessage.no setter - intlMessages → IntlMessages
-
The handled IntlMessages instance.
no setter
- isLoaded → bool
-
Returns
true
if IntlMessages.autoDiscover is fully loaded and found all LocalizedMessage.no setter -
onLoad
→ EventStream<
bool> -
final
- package → String
-
The package of the intlMessages instance.
no setter
- pathPrefix → String
-
The path prefix for the registered IntlResourceDiscover.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureLoaded(
) → Future< bool> - Returns response of IntlMessages.autoDiscover called on loader construction.
-
matchesPathPrefix(
String pathPrefix) → bool -
Returns
true
ifpathPrefix
(after normalization) matchesthis.pathPrefix
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override