WarningsRegistry class abstract
A class that store warning metadata for different warning types.
Aggregates individual collection for each warning category (safety cameras, truck restrictions, etc.).
Provided by WarnerEngine so callers can lookup detailed information about specific warnings.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBorderCrossingWarning(
Warning warning) → BorderCrossingWarning? - Returns a border crossing warning corresponding to the given identifier.
-
getCustomWarning(
Warning warning) → CustomWarning? - Returns additional data associated with the given custom warning.
-
getDangerZoneWarning(
Warning warning) → DangerZoneWarning? - Returns a danger zone warning corresponding to the given identifier.
-
getEnvironmentalZoneWarning(
Warning warning) → EnvironmentalZoneWarning? - Returns environmental zone warning corresponding to the given identifier.
-
getLaneDecreaseWarning(
Warning warning) → LaneDecreaseWarning? - Returns a lane decrease warning corresponding to the given identifier.
-
getLowSpeedZoneWarning(
Warning warning) → LowSpeedZoneWarning? - Returns a low speed zone warning corresponding to the given identifier.
-
getRailwayCrossingWarning(
Warning warning) → RailwayCrossingWarning? - Returns a railway crossing warning corresponding to the given identifier.
-
getRealisticViewWarning(
Warning warning) → RealisticViewWarning? - Returns a realistic-view warning corresponding to the given identifier.
-
getRoadSignWarning(
Warning warning) → RoadSignWarning? - Returns a road-sign warning corresponding to the given identifier.
-
getSafetyCameraWarning(
Warning warning) → SafetyCameraWarning? - Returns a safety-camera warning corresponding to the given identifier.
-
getSchoolZoneWarning(
Warning warning) → SchoolZoneWarning? - Returns a school zone warning corresponding to the given identifier.
-
getTollStopWarning(
Warning warning) → TollStop? - Returns a toll stop warning corresponding to the given identifier.
-
getTrafficMergeWarning(
Warning warning) → TrafficMergeWarning? - Returns a traffic merge warning corresponding to the given identifier.
-
getTruckRestrictionWarning(
Warning warning) → TruckRestrictionWarning? - Returns a truck restrictions warning corresponding to the given identifier.
-
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.
inherited