TankerKoenigApi class
Basic implementation class for tankerkoenig api of TankerKoenigDartApi
- Inheritance
-
- Object
- TankerKoenigDartApi
- TankerKoenigApi
Constructors
- TankerKoenigApi(String _apiKey, {TankerKoenigClient? client})
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stationById(
{required String id}) → Future< Station?> -
Retrieve gas station by given
id
.override -
stationsByIds(
{required List< String> ids}) → Future<Iterable< Station> ?> -
Retrieve gas stations by given
ids
.override -
stationsByLatLng(
{required double latitude, required double longitude, int radius = 10}) → Future< Iterable< Station> ?> -
Retrieve gas stations by given
latitude
andlongitude
. Those values must be provided.radius
indicates radius in km around given coordinates.override -
stationsByPostalCode(
{required int postalCode}) → Future< Iterable< Station> ?> -
Retrieve gas stations by given
postalCode
. Those value must be provided.override -
statistics(
) → Future< Statistic> -
Retrieve statistics about gas types. These are normally
Diesel
,E5
andE10
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited