Warning class

A class which represents a warning.

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

Warning(int id, DistanceType distanceType, WarningType warningType)

Properties

customWarningType ↔ int?
Identifier of the custom warning type.
getter/setter pair
distanceType DistanceType
The type of distance measurement used for this warning.
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 warningType and can be used to retrieve additional information from a corresponding registry.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
warningType WarningType
The specific type of the warning.
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.