RouteTrackCircuit class

Represents a track circuit.

Implemented types

Constructors

RouteTrackCircuit({required String circuitId, required int seqNum, required String stationCode})
Creates a RouteTrackCircuit.
const
RouteTrackCircuit.empty()
Creates an empty RouteTrackCircuit.
const
RouteTrackCircuit.fromJson(Map<String, dynamic> json)
Creates a RouteTrackCircuit from a JSON object.
factory

Properties

circuitId String
An internal system-wide uniquely identifiable circuit number.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this RouteTrackCircuit is empty.
no setter
isNotEmpty bool
Whether or not this RouteTrackCircuit is not empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seqNum int
Order in which the circuit appears for the given line and track.
final
stationCode String
If the circuit is at a station, this value will represent the station code; otherwise, it will be be null.
final

Methods

compareTo(dynamic other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this RouteTrackCircuit.
toString() String
A string representation of this object.
override

Operators

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