AMapView class Null safety

高德地图

Inheritance

Constructors

AMapView({Key? key, bool autoLocateAfterInit = false, LocationType locationType = LocationType.LOCATE, int locationInterval = 2000, bool showZoomControl = true, bool showCompass = false, bool showLocationButton = false, bool showScaleControl = false, bool? allGestureEnable, bool zoomGestureEnable = true, bool rotateGestureEnable = true, bool scrollGestureEnable = true, bool tiltGestureEnable = true, bool isGestureScaleByMapCenter = false, ZoomPosition zoomPosition = ZoomPosition.RIGHT_BOTTOM, LogoPosition logoPosition = LogoPosition.BOTTOM_LEFT, LogoMargin? logoMargin, CompassMargin? compassMargin, ScaleMargin? scaleMargin})
const

Properties

allGestureEnable bool?
所有手势是否可用 [...]
final
autoLocateAfterInit bool
初始化后是否自动定位
final
compassMargin CompassMargin?
指南针相对右上角边距 [...]
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
isGestureScaleByMapCenter bool
是否以地图中心点缩放
final
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
locationInterval int
定位间隔,仅定位类型为连续定位时有效,单位毫秒
final
locationType LocationType
定位类型
final
logoMargin LogoMargin?
Logo相对左下角边距,同时会影响比例尺控件的位置 [...]
final
logoPosition LogoPosition
Logo位置 [...]
final
rotateGestureEnable bool
旋转手势是否可用
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaleMargin ScaleMargin?
比例尺相对左下角边距 [...]
final
scrollGestureEnable bool
拖拽手势是否可用
final
showCompass bool
是否显示指南针
final
showLocationButton bool
是否显示定位按钮 [...]
final
showScaleControl bool
是否显示比例尺控件
final
showZoomControl bool
是否显示缩放控件 [...]
final
tiltGestureEnable bool
倾斜手势是否可用
final
viewType String
final
zoomGestureEnable bool
缩放手势是否可用
final
zoomPosition ZoomPosition
缩放控件位置 [...]
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited