WooData class
Reference data WooCommerce publishes: countries, currencies, continents.
Useful for building an address form that matches the store's own — the states of a country, and what its address fields are called, come from here rather than from a list you maintain.
Constructors
- WooData(WooCommerce _client)
-
Wraps
_client's data routes.
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
-
continents(
) → Future< List< Map< >String, Object?> > - Continents, with the countries in each.
-
countries(
) → Future< List< Map< >String, Object?> > - Every country, with its states.
-
country(
String code) → Future< Map< String, Object?> > - One country and its states, by two-letter code.
-
currencies(
) → Future< List< Map< >String, Object?> > - Every currency WooCommerce knows.
-
currentCurrency(
) → Future< Map< String, Object?> > - The store's own currency, with its symbol and position.
-
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