moveTo method

void moveTo(
  1. Vector2 point, {
  2. double speed = double.infinity,
})

Moves the camera towards the specified world point.

Implementation

void moveTo(Vector2 point, {double speed = double.infinity}) {
  stop();
  viewfinder.add(
    MoveToEffect(point, EffectController(speed: speed)),
  );
}