W3cubDocs

/Dart 2

ServiceExtensionHandler typedef

Future<ServiceExtensionResponse> ServiceExtensionHandler (String method, Map<String, String> parameters)

A service protocol extension handler. Registered with registerExtension.

Must complete to a ServiceExtensionResponse. method is the method name of the service protocol request, and parameters is a map holding the parameters to the service protocol request.

NOTE: all parameter names and values are encoded as strings.

Implementation

typedef Future<ServiceExtensionResponse> ServiceExtensionHandler(
    String method, Map<String, String> parameters);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-developer/ServiceExtensionHandler.html