GiantToadPixelCameraController constructor
GiantToadPixelCameraController({})
Implementation
GiantToadPixelCameraController({
required this.camera,
this.target,
this.followSpeed = 12,
this.deadzone = Rect.zero,
this.lookAhead = 0,
this.worldBounds,
this.pixelSnap = true,
this.maxShake = 6,
}) {
if (followSpeed < 0 || lookAhead < 0 || maxShake < 0) {
throw ArgumentError(
'Camera speed, look-ahead, and shake must be non-negative.',
);
}
}