fetchStation function
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,
);