SchoolZoneWarning class
A school zone warning which notifies about a school zone presence on road with a speed limit different than the default speed limit applicable for cars.
Use SchoolZoneWarningListener to get notifications about school zones.
Constructors
- SchoolZoneWarning(double distanceToSchoolZoneInMeters, double speedLimitInMetersPerSecond, DistanceType distanceType)
Properties
- distanceToSchoolZoneInMeters ↔ double
-
The distance from the current location to the school zone in meters.
getter/setter pair
- distanceType ↔ DistanceType
-
The distance type for the warning, e.g. a warning for a new school zone ahead or a warning
for passing a school zone.
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
- speedLimitInMetersPerSecond ↔ double
-
Speed limit meters/second, which applies to current school zone.
getter/setter pair
- timeRule ↔ TimeRule?
-
Time rule indicating the time periods for which the warning applies.
If the field is 'null' then the warning is applicable at anytime.
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.