CameraSceneAction.target constructor

CameraSceneAction.target(
  1. GameComponent? target, {
  2. dynamic id,
  3. Duration duration = const Duration(seconds: 1),
  4. double? zoom,
  5. double? angle,
  6. Curve curve = widget.Curves.decelerate,
})

Implementation

CameraSceneAction.target(
  this.target, {
  dynamic id,
  this.duration = const Duration(seconds: 1),
  this.zoom,
  this.angle,
  this.curve = widget.Curves.decelerate,
})  : position = null,
      super(id);