fetchRoutes function

Future<List<Route>> fetchRoutes(
  1. String apiKey
)

Fetches the routes from the WMATA API.

apiKey is your API key for the WMATA API.

Implementation

Future<List<Route>> fetchRoutes(String apiKey) async =>
    await RoutesService.fetchRoutes(apiKey);