TrackCircuitNeighbor class

Represents a track circuit neighbor.

Constructors

TrackCircuitNeighbor({required List<String> circuitIds, required NeighborType neighborType})
Creates a TrackCircuitNeighbor.
const
TrackCircuitNeighbor.empty()
Creates an empty TrackCircuitNeighbor.
const
TrackCircuitNeighbor.fromJson(Map<String, dynamic> json)
Creates a TrackCircuitNeighbor from a JSON object.
factory

Properties

circuitIds List<String>
Array containing neighboring circuit ids.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this TrackCircuitNeighbor is empty.
no setter
isNotEmpty bool
Whether or not this TrackCircuitNeighbor is not empty.
no setter
neighborType NeighborType
Left or Right neighbor group.
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 representation of this TrackCircuitNeighbor.
toString() String
A string representation of this object.
override

Operators

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