RegionalizationsDelegate<T> class abstract

A factory for a set of regionalized resources of type T, to be loaded by a Regionalizations widget.

Unlike LocalizationsDelegate asynchronous resource loading is not yet supported.

Constructors

RegionalizationsDelegate()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The type of the object returned by the load method, T by default.
no setter

Methods

isSupported(Region region) bool
Whether resources for the given region can be loaded by this delegate.
load(Region region) → T
Start loading the resources for region. The returned future completes when the resources have finished loading.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldReload(covariant RegionalizationsDelegate<T> old) bool
Returns true if the resources for this delegate should be loaded again by calling the load method.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited