handleMethod method

Future handleMethod(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethod(MethodCall call) async {
  switch (call.method) {
    case "run":
      String id = call.arguments["id"];
      Map<String, dynamic> params =
          call.arguments["params"].cast<String, dynamic>();
      run(id, params);
      break;
    default:
      throw UnimplementedError("Unimplemented ${call.method} method");
  }
  return null;
}