cameraConstraint property

CameraConstraint cameraConstraint

Note that this getter exists to make sure that the deprecated maxBounds option is consistently used. Making this a getter allows the constructor to remain const.

Implementation

CameraConstraint get cameraConstraint =>
    _cameraConstraint ??
    (maxBounds != null
        ? CameraConstraint.contain(bounds: maxBounds!)
        : const CameraConstraint.unconstrained());