GoogleI18nLocalizationsDelegate class Null safety
Delegate for the localizations fetched from a Google spreadsheet.
Sample code
GoogleI18nLocalizationsDelegate('https://spreadsheets.google.com/feeds/list/.../1/public/values?alt=json')
- Inheritance
-
- Object
- LocalizationsDelegate<
GoogleI18nLocalizations> - GoogleI18nLocalizationsDelegate
Constructors
- GoogleI18nLocalizationsDelegate(dynamic spreadsheetUrl)
Properties
- currentLocale ↔ Locale
-
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- type → Type
-
The type of the object returned by the load method, T by default.
read-onlyinherited
Methods
-
isSupported(
Locale locale) → bool -
Whether resources for the given locale can be loaded by this delegate.
override
-
load(
Locale locale) → Future< GoogleI18nLocalizations> -
Start loading the resources for
locale
. The returned future completes when the resources have finished loading.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
shouldReload(
covariant GoogleI18nLocalizationsDelegate old) → bool -
Returns true if the resources for this delegate should be loaded
again by calling the load method.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited