CustomWarningProvider class abstract
A abstract class representing a provider of custom warnings based on vehicle position.
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
-
CustomWarningProvider(int getCustomWarningTypeLambda(), List<
CustomWarning> getWarningsLambda(SegmentData, SegmentData?)) -
A abstract class representing a provider of custom warnings based on vehicle position.
factory
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
-
getCustomWarningType(
) → int - Returns the custom warning type identifier produced by this provider.
-
getWarnings(
SegmentData currentSegment, SegmentData? previousSegment) → List< CustomWarning> - Returns a list of custom warnings for the given vehicle position.
-
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