fetchParking function
Fetches parking information.
apiKey
is your API key for the WMATA API.
stationCode
is the unique identifier for the station you want to fetch
parking information for. If null
, all stations will be returned.
Implementation
Future<List<Parking>> fetchParking(
String apiKey, {
String? stationCode,
}) async =>
await ParkingService.fetchParking(
apiKey,
stationCode: stationCode,
);