LanguageDataProvider class
Constructors
- LanguageDataProvider.asset(String parentPath)
-
Create an instance of data from
asset
.factory - LanguageDataProvider.data(LanguageData data)
-
Create an instance of data from LanguageData.
factory
- LanguageDataProvider.empty()
-
Create an empty
LanguageDataProvider
const -
LanguageDataProvider.network(String parentUrl, {Client? client, Map<
String, String> ? headers}) -
Create an instance of data from
network
.factory
Properties
-
getData
→ FutureOr<
LanguageData> Function(LanguageCodes code) -
Get the
LanguageData
based on thecode
.no setter -
getSupportedCodes
→ FutureOr<
Set< Function()LanguageCodes> > -
Get all supported
LanguageCodes
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Check whether the current
LanguageDataProvider
thisempty
.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