onExtensionError property

void Function(String provider, String extension, int error, String message)? onExtensionError
final

Occurs when the extension runs incorrectly. When calling enableExtension (true) fails or the extension runs in error, the extension triggers this callback and reports the error code and reason.

  • provider The name of the extension provider.
  • extension The name of the extension.
  • error Error code. For details, see the extension documentation provided by the extension provider.
  • message Reason. For details, see the extension documentation provided by the extension provider.

Implementation

final void Function(
        String provider, String extension, int error, String message)?
    onExtensionError;