WarningListener class abstract

A generic listener interface abstract class for receiving warning notifications.

Implementations of this interface are notified whenever the WarnerEngine detects new warnings. The listener receives a list of Warning objects, each describing a specific event or condition that requires user attention.

Classes interested in warning updates should implement this listener and register themselves via WarnerEngine.addWarningListener.

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

WarningListener(void onWarningsLambda(List<Warning>))
A generic listener interface abstract class for receiving warning notifications.
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWarnings(List<Warning> warnings) → void
Called when a new warnings is detected.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited