CustomWarning class

class container for custom warning data.

This structure represents the type-specific payload associated with a custom warning.

Instances of this structure are typically produced by custom warning evaluation logic and may also be retrieved from the WarningRegistry.

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

CustomWarning()

Properties

customWarningType ↔ int
Identifier of the custom warning type.
getter/setter pair
endOffsetInMeters ↔ double?
End offset of the warning range along the segment.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
id ↔ int
Identifier of the warning. The ID is unique only within its specific CustomWarning.customWarningType and can be used to retrieve additional information from a corresponding registry.
getter/setter pair
payload Metadata?
Custom warning payload.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startOffsetInMeters ↔ double
Start offset of the warning range along the segment.
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.