DataProvider class final
An ICU4X data provider, capable of loading ICU4X data keys from some source.
Currently the only source supported is loading from "blob" formatted data from a bytes buffer or the file system.
If you wish to use ICU4X's builtin "compiled data", use the version of the constructors that do not have _with_provider
in their names.
See the Rust documentation for icu_provider
for more information.
- Implemented types
Constructors
- DataProvider.fromByteSlice(ByteBuffer blob)
-
See the Rust documentation for
try_new_from_blob
for more information.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
enableLocaleFallbackWith(
LocaleFallbacker fallbacker) → void -
See the Rust documentation for
new
for more information. -
forkByLocale(
DataProvider other) → void -
Same as
fork_by_key
but forks by locale instead of key. -
forkByMarker(
DataProvider other) → void -
Creates a provider that tries the current provider and then, if the current provider
doesn't support the data key, another provider
other
. -
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