CameraFit class abstract
Describes a position for a MapCamera
Constraints are handled by CameraConstraint.
- Annotations
Constructors
- CameraFit()
-
Describes a position for a MapCamera
const
- CameraFit.bounds({required LatLngBounds bounds, EdgeInsets padding, double? maxZoom, double minZoom, bool forceIntegerZoomLevel})
-
Fits the
boundsinside the cameraconstfactory -
CameraFit.coordinates({required List<
LatLng> coordinates, EdgeInsets padding, double? maxZoom, double minZoom, bool forceIntegerZoomLevel}) -
Fits the camera to the
coordinates, as closely as possibleconstfactory - CameraFit.insideBounds({required LatLngBounds bounds, EdgeInsets padding, double? maxZoom, double minZoom, bool forceIntegerZoomLevel})
-
Fits the camera inside the
boundsconstfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fit(
MapCamera camera) → MapCamera -
Create a new fitted camera based off the current
camera -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited