handle method

  1. @override
void handle(
  1. WidgetAction action
)
override

Implementation

@override
void handle(WidgetAction action) {
  Map<String, String> values = HashMap();
  prepareContext(action);
  api.call(values);
  // response.then((res) {
  //   if ( success != null ) {
  //     var decodedResponse = jsonDecode(utf8.decode(res.bodyBytes)) as Map;
  //     InvokableMap m = InvokableMap(decodedResponse);
  //     context["response"] = m;
  //     var json = jsonDecode(success!);
  //     List<ASTNode> arr = ASTBuilder().buildArray(json['body']);
  //     Interpreter(context).evaluate(arr);
  //   }
  //
  // });
}