getDangerZoneWarning abstract method

DangerZoneWarning? getDangerZoneWarning(
  1. Warning warning
)

Returns a danger zone warning corresponding to the given identifier.

  • warning The identifier of the warning, as provided by WarningListener.onWarning. The warning uniquely identifies a single danger zone warning within this registry and is used to retrieve its full metadata.

Returns DangerZoneWarning?. The DangerZoneWarning object associated with the provided WarningsRegistry.getDangerZoneWarning.warning, or null if no warning exists for the given WarningsRegistry.getDangerZoneWarning.warning. This object contains the full details and attributes of the corresponding warning.

Implementation

DangerZoneWarning? getDangerZoneWarning(Warning warning);