getHandler method

Future Function(Map<String, dynamic> context) getHandler()

Gets entry point into this Azure function.

  • event an incoming event object with invocation parameters.
  • context a context object with local references.

Implementation

Future Function(Map<String, dynamic> context) getHandler() {
  // Return plugin function
  return (Map<String, dynamic> context) {
    // Calling run with changed context
    return _handler(context);
  };
}