Route class

Represents a bus route.

Constructors

Route({required String routeId, required String name, required String lineDescription})
Creates a Route object.
const
Route.empty()
Creates an empty Route object.
Route.fromJson(Map<String, dynamic> json)
Creates a Route object from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this object is empty.
no setter
isNotEmpty bool
Whether or not this object is not empty.
no setter
lineDescription String
Denotes the route variant’s grouping – lines are a combination of routes which lie in the same corridor and which have significant portions of their paths along the same roadways.
final
name String
Descriptive name of the route variant.
final
routeId String
Base route name as shown on the bus.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON object which represents this object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override