AppleMap class

Inheritance

Constructors

AppleMap({Key? key, required CameraPosition initialCameraPosition, required MapCreatedCallback onMapCreated, bool compassEnabled = true, bool trafficEnabled = false, MapType mapType = MapType.standard, MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded, TrackingMode trackingMode = TrackingMode.none, bool rotateGesturesEnabled = true, bool scrollGesturesEnabled = true, bool zoomGesturesEnabled = true, bool pitchGesturesEnabled = true, bool myLocationEnabled = false, bool myLocationButtonEnabled = false, EdgeInsets padding = EdgeInsets.zero, VoidCallback? onCameraMoveStarted, dynamic onCameraIdle(LatLngBounds)?, dynamic onMarkerSelected(String)?})
const

Properties

compassEnabled bool
True if the map should show a compass when rotated.
final
hashCode int
The hash code for this object.
no setterinherited
initialCameraPosition CameraPosition
The initial position of the map's camera.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mapType MapType
Type of map tiles to be rendered.
final
minMaxZoomPreference MinMaxZoomPreference
Preferred bounds for the camera zoom level.
final
myLocationButtonEnabled bool
Enables or disables the my-location button.
final
myLocationEnabled bool
True if a "My Location" layer should be shown on the map.
final
onCameraIdle → (dynamic Function(LatLngBounds)?)
Called when camera movement has ended, there are no pending animations and the user has stopped interacting with the map.
final
onCameraMoveStarted VoidCallback?
Called when the camera starts moving.
final
onMapCreated MapCreatedCallback
final
onMarkerSelected → (dynamic Function(String)?)
Called when camera movement has ended, there are no pending animations and the user has stopped interacting with the map.
final
padding EdgeInsets
The padding used on the map
final
pitchGesturesEnabled bool
True if the map view should respond to tilt gestures.
final
rotateGesturesEnabled bool
True if the map view should respond to rotate gestures.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollGesturesEnabled bool
True if the map view should respond to scroll gestures.
final
trackingMode TrackingMode
The mode used to track the user location.
final
trafficEnabled bool
True if the map should display the current traffic.
final
zoomGesturesEnabled bool
True if the map view should respond to zoom gestures.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
inherited