getCustomWarning abstract method
- Warning warning
Returns additional data associated with the given custom warning.
The provided WarningsRegistry.getCustomWarning.warning identifies a specific custom warning instance by its
base warning information and custom warning type. This information is used
to resolve the corresponding entry in the warning registry and retrieve
any additional, type-specific data associated with the warning.
warningThe Warning instance identifying the custom warning for which additional data should be retrieved.
Returns CustomWarning?. The CustomWarning associated with the given WarningsRegistry.getCustomWarning.warning, or null
if no additional data exists for this warning.
The returned object contains the payload with type-specific
details and attributes of the corresponding 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.
Implementation
CustomWarning? getCustomWarning(Warning warning);