FlutterMapState class

Inheritance
Mixed in types

Constructors

FlutterMapState()

Properties

bounds LatLngBounds
no setter
center → LatLng
no setter
context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mapController MapController
no setter
mapState FlutterMapState
no setter
mounted bool
Whether this State object is currently in a tree.
no setterinherited
nonrotatedSize CustomPoint<double>
no setter
options MapOptions
no setter
pixelBounds Bounds<double>
no setter
pixelOrigin CustomPoint<int>
no setter
rotation double
no setter
rotationRad double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size CustomPoint<double>
no setter
wantKeepAlive bool
Whether the current instance should be kept alive.
no setteroverride
widget FlutterMap
The current configuration.
no setterinherited
zoom double
no setter

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
adjustCenterIfOutsideMaxBounds(LatLng testCenter, double testZoom, LatLngBounds maxBounds) → LatLng?
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
centerZoomFitBounds(LatLngBounds bounds, FitBoundsOptions options) CenterZoom
closeDoubleTapController(MapEventSource source) → void
inherited
closeFlingAnimationController(MapEventSource source) → void
inherited
containPoint(LatLng point, LatLng fallback) → LatLng
createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant FlutterMap oldWidget) → void
Called whenever the widget configuration changes.
dispose() → void
Called when this object is removed from the tree permanently.
inherited
emitMapEvent(MapEvent event) → void
fitBounds(LatLngBounds bounds, FitBoundsOptions options, {Offset offset = Offset.zero}) bool
fitZoomToBounds(double zoom) double
getBoundsCenterZoom(LatLngBounds bounds, FitBoundsOptions options) CenterZoom
getBoundsZoom(LatLngBounds bounds, CustomPoint<double> padding, {bool inside = false, bool forceIntegerZoomLevel = false}) double
getNewPixelOrigin(LatLng center, [double? zoom]) CustomPoint<int>
getOffsetFromOrigin(LatLng pos) Offset
getPixelBounds([double? zoom]) Bounds<double>
getPixelWorldBounds(double? zoom) Bounds<num>?
getScaleZoom(double scale, double? fromZoom) double
getZoomScale(double toZoom, double fromZoom) double
handleAnimationInterruptions(MapEvent event) → void
inherited
handleDoubleTap(TapPosition tapPosition) → void
inherited
handleLongPress(TapPosition position) → void
inherited
handleOnTapUp(TapUpDetails details) → void
inherited
handleScaleEnd(ScaleEndDetails details) → void
inherited
handleScaleStart(ScaleStartDetails details) → void
inherited
handleScaleUpdate(ScaleUpdateDetails details) → void
inherited
handleSecondaryTap(TapPosition position) → void
inherited
handleTap(TapPosition position) → void
inherited
initState() → void
Called when this object is inserted into the tree.
isOutOfBounds(LatLng center) bool
latLngToScreenPoint(LatLng latLng) CustomPoint<double>
layerPointToLatLng(CustomPoint<num> point) → LatLng
move(LatLng newCenter, double newZoom, {Offset offset = Offset.zero, bool hasGesture = false, required MapEventSource source, String? id}) bool
moveAndRotate(LatLng newCenter, double newZoom, double newRotation, {Offset offset = Offset.zero, required MapEventSource source, String? id}) MoveAndRotateResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPointerCancel(PointerCancelEvent event) → void
inherited
onPointerDown(PointerDownEvent event) → void
inherited
onPointerHover(PointerHoverEvent event) → void
inherited
onPointerSignal(PointerSignalEvent pointerSignal) → void
inherited
onPointerUp(PointerUpEvent event) → void
inherited
pointToLatLng(CustomPoint<num> localPoint) → LatLng
project(LatLng latlng, [double? zoom]) CustomPoint<double>
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
rotate(double newRotation, {bool hasGesture = false, required MapEventSource source, String? id}) bool
rotateAroundPoint(double degree, {CustomPoint<double>? point, Offset? offset, bool hasGesture = false, required MapEventSource source, String? id}) MoveAndRotateResult
rotatePoint(CustomPoint<double> mapCenter, CustomPoint<double> point, {bool counterRotation = true}) CustomPoint<double>
setSize(double width, double height) → void
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
unproject(CustomPoint<num> point, [double? zoom]) → LatLng
updateKeepAlive() → void
Ensures that any AutomaticKeepAlive ancestors are in a good state, by firing a KeepAliveNotification or triggering the KeepAliveHandle as appropriate.
inherited

Operators

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

Static Methods

maybeOf(BuildContext context) FlutterMapState?
of(BuildContext context) FlutterMapState

Constants

invalidSize → const CustomPoint<double>