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
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.