RailwayCrossingWarning class
A class that provides railway crossing.
The main field describing the railway crossing is RailwayCrossingWarning.type specifying
whether the railway crossing is protected by a barrier or not.
Use RailwayCrossingWarningListener to get notifications about upcoming railway crossings.
Constructors
- RailwayCrossingWarning(double distanceToRailwayCrossingInMeters, DistanceType distanceType, SegmentReference segmentReference)
Properties
- distanceToRailwayCrossingInMeters ↔ double
-
Distance to the railway crossing in meters.
getter/setter pair
- distanceType ↔ DistanceType
-
The distance type for the warning, e.g. a warning for a new railway crossing ahead or a warning
for passing a railway crossing.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- id ↔ int
-
Unique identifier for this specific railway crossing warning instance.
Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace.
Use this ID to track, update, or dismiss individual warning instances of this type.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentReference ↔ SegmentReference
-
The reference to the segment where the railway crossing is located. It can be used to identify the
location.
getter/setter pair
- type ↔ RouteRailwayCrossingType
-
Type of railway crossing, specifying whether it is protected by a barrier or not.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.