RegisterServiceExtensionCallback typedef

RegisterServiceExtensionCallback = void Function({required ServiceExtensionCallback callback, required String name})

Signature for a method that registers the service extension callback with the given name.

Used as argument to WidgetInspectorService.initServiceExtensions. The BindingBase.registerServiceExtension implements this signature.

Implementation

typedef RegisterServiceExtensionCallback = void Function({
  required String name,
  required ServiceExtensionCallback callback,
});