onExtensionErrorWithContext property

void Function(ExtensionContext context, int error, String message)? onExtensionErrorWithContext
final

Callback for extension errors.

If enabling the extension fails or the extension encounters a runtime error, it triggers this callback to report the error code and reason.

  • context Extension context information. See ExtensionContext.
  • error Error code. See the documentation provided by the extension provider.
  • message Error reason. See the documentation provided by the extension provider.

Implementation

final void Function(ExtensionContext context, int error, String message)?
    onExtensionErrorWithContext;