fetchStation function

Future<Station> fetchStation(
  1. String apiKey, {
  2. required String stationCode,
})

Fetches the station info for the given stationCode.

apiKey is your API key for the WMATA API.

Implementation

Future<Station> fetchStation(
  String apiKey, {
  required String stationCode,
}) async =>
    await StationInfoService.fetchStation(
      apiKey,
      stationCode: stationCode,
    );