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 - the method name of the service protocol request. parameters - A map holding the parameters to the service protocol request.

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

Source

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.dartlang.org/stable/1.24.3/dart-developer/ServiceExtensionHandler.html