code: public TouchActionBuilder flick(Point origin, FlickDirection direction,
                                    int distance, int duration) {
      Preconditions.checkState(!isDown);
  
      Map<String, Object> params = Maps.newHashMap();
      params.put("x", origin.getX());
      params.put("y", origin.getY());
      params.put("direction", direction.getDirection());
      params.put("distance", distance);
      params.put("duration", duration);
  
      addAction(TouchActionName.FLICK, params);
      return this;
    }
docs: Non-standard (high-level) command to flick the screen in a given tick.
  This method should not be used in MultiTouchActions, or if the pointer is already down in a
  given position.
  @param origin Point at which the flick should start
  @param direction Direction in which to flick
  @param distance Distance in which the flick should occur
  @param duration Length of time the finger should be down on the screen
  @return this