MapState class

Constructors

MapState(MapOptions options, ValueChanged<double> onRotationChanged, StreamSink<MapEvent> _mapEventSink)

Properties

bounds LatLngBounds
no setter
center → LatLng
no setter
hashCode int
The hash code for this object.
no setterinherited
onMoved Stream<void>
no setter
onRotationChanged ValueChanged<double>
final
options MapOptions
getter/setter pair
originalSize CustomPoint<num>?
no setter
pixelBounds Bounds<num>
no setter
rotation double
getter/setter pair
rotationRad double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size CustomPoint<double>
no setter
zoom double
no setter

Methods

adjustCenterIfOutsideMaxBounds(LatLng testCenter, double testZoom, LatLngBounds maxBounds) → LatLng?
centerZoomFitBounds(LatLngBounds bounds, FitBoundsOptions options) CenterZoom
dispose() → void
emitMapEvent(MapEvent event) → void
fitBounds(LatLngBounds bounds, FitBoundsOptions options) → void
fitZoomToBounds(double? zoom) double
getBounds() LatLngBounds
getBoundsCenterZoom(LatLngBounds bounds, FitBoundsOptions options) CenterZoom
getBoundsZoom(LatLngBounds bounds, CustomPoint<double> padding, {bool inside = false}) double
getCenter() → LatLng
getLastPixelBounds() Bounds<num>
getNewPixelOrigin(LatLng center, [double? zoom]) CustomPoint<num>
getOffsetFromOrigin(LatLng pos) Offset
getPixelBounds(double zoom) Bounds<num>
getPixelOrigin() CustomPoint<num>
getPixelWorldBounds(double? zoom) Bounds<num>?
getScaleZoom(double scale, double? fromZoom) double
getZoomScale(double toZoom, double? fromZoom) double
hasLateSize(BoxConstraints constraints) bool
initIfLateSize() → void
latLngToScreenPoint(LatLng latLng) CustomPoint<num>
layerPointToLatLng(CustomPoint<num> point) → LatLng
move(LatLng center, double zoom, {bool hasGesture = false, bool callOnMoveSink = true, required MapEventSource source, String? id}) bool
moveAndRotate(LatLng center, double zoom, double degree, {required MapEventSource source, String? id}) MoveAndRotateResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointToLatLng(CustomPoint<num> localPoint) → LatLng?
project(LatLng latlng, [double? zoom]) CustomPoint<num>
rebuildLayers() → void
rotate(double degree, {bool hasGesture = false, bool callOnMoveSink = true, required MapEventSource source, String? id}) bool
rotatePoint(CustomPoint<num> mapCenter, CustomPoint<num> point, {bool counterRotation = true}) CustomPoint<num>
setOriginalSize(double width, double height) → void
toString() String
A string representation of this object.
inherited
unproject(CustomPoint<num> point, [double? zoom]) → LatLng

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

maybeOf(BuildContext context, {bool nullOk = false}) MapState?