MoroccanCities class

Represents a singleton class that provides methods for accessing Futures and Streams of MorrocanCityies and MorrocanRegions

You can access the singleton instance of this class using MoroccanCities.instance

MoroccanCities.instance;

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

cities() Future<List<MorrocanCity>>
Returns a Future of List of MorrocanCity for all cities in Morocco.
citiesOfRegion(MorrocanRegion region) Future<List<MorrocanCity>>
Returns a Future of List of MorrocanCity for all cities in a MorrocanRegion.
citiesOfRegionStream(MorrocanRegion region) Stream<MorrocanCity>
Returns a Stream of MorrocanCity of all cities in a MorrocanRegion.
citiesStream() Stream<MorrocanCity>
Returns a Stream of MorrocanCity of all cities in Morocco.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regions() Future<List<MorrocanRegion>>
Returns a Future of List of MorrocanRegion for all regions in Morocco.
regionsStream() Stream<MorrocanRegion>
Returns a Stream of MorrocanRegion of all regions in Morocco.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MoroccanCities
Represents a singleton class that provides methods for accessing Futures and Streams of MorrocanCityies and MorrocanRegions
no setter