fetchRailIncidents function

Future<List<RailIncident>> fetchRailIncidents(
  1. String apiKey
)

Fetches rail incidents.

apiKey is your API key for the WMATA API.

Implementation

Future<List<RailIncident>> fetchRailIncidents(String apiKey) async =>
    await RailIncidentService.fetchRailIncidents(apiKey);