WarningListener constructor

WarningListener(
  1. void onWarningsLambda(
    1. List<WarningUpdate>,
    2. WarningsRegistry
    )
)

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.

Implementation

factory WarningListener(
  void Function(List<WarningUpdate>, WarningsRegistry) onWarningsLambda,

) => WarningListener$Lambdas(
  onWarningsLambda,

);