fetchNextBuses function
Fetches the next buses for a given stop.
apiKey
is your API key for the WMATA API.
stopId
is the ID of the stop you want to get the next buses for.
Implementation
Future<NextBuses> fetchNextBuses(
String apiKey, {
required String stopId,
}) async =>
NextBusesService.fetchNextBuses(
apiKey,
stopId: stopId,
);