Stop class

Represents a bus stop.

Constructors

Stop({required double latitude, required double longitude, required String name, required List<String> routes, required int stopId})
Creates a Stop object.
const
Stop.empty()
Creates an empty Stop object.
const
Stop.fromJson(Map<String, dynamic> json)
Creates a Stop 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
latitude double
final
longitude double
final
name String
Stop name.
final
routes List<String>
String array of route variants which provide service at this stop.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopId int
7-digit regional ID which can be used in various bus-related methods.
final

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