ShuttleProvider class

This class contains methods for providing data to Repository

Constructors

ShuttleProvider()

Properties

getIsConnected bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isConnected bool
Boolean to determine if the app is connected to network
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createJSONFile(String fileName, dynamic response) Future
Helper function to create local JSON file
fetch(String type) Future
This function will fetch the data from the JSON API and return a decoded
getEtas() Future<List<ShuttleEta>>
Getter method to retrieve the list of shuttle eta (estimated times of arrival)
getRoutes() Future<Map<String, ShuttleRoute>>
Getter method to retrieve the list of routes
getStops() Future<List<ShuttleStop>>
Getter method to retrieve the list of stops
getUpdates() Future<List<ShuttleUpdate>>
Getter method to retrieve the list of updated shuttles
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited