GoogleMapCross class

This widget will try to occupy all available space

Inheritance

Constructors

GoogleMapCross({Key? key, double? minZoom, double? maxZoom, String? mapStyle, Set<Marker> markers = const <Marker>{}, ValueChanged<GeoCoord>? onTap, ValueChanged<GeoCoord>? onLongPress, bool interactive = true, double initialZoom = _zoom, MapType mapType = MapType.roadmap, GeoCoord initialPosition = const GeoCoord(_defaultLat, _defaultLng), MobileMapPreferences mobilePreferences = const MobileMapPreferences(), WebMapPreferences webPreferences = const WebMapPreferences()})
Creates an instance of GoogleMapCross.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
initialPosition GeoCoord
The initial position of the map's camera.
final
initialZoom double
The initial zoom of the map's camera.
final
interactive bool
Defines whether map is interactive or not.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mapStyle String?
Sets the styling of the base map.
final
mapType MapType
Type of map tiles to be rendered.
final
markers Set<Marker>
Markers to be placed on the map.
final
maxZoom double?
The preferred maximum zoom level or null, if unbounded from above.
final
minZoom double?
The preferred minimum zoom level or null, if unbounded from below.
final
mobilePreferences MobileMapPreferences
Set of mobile map preferences.
final
onLongPress ValueChanged<GeoCoord>?
Called every time a GoogleMapCross is long pressed.
final
onTap ValueChanged<GeoCoord>?
Called every time a GoogleMapCross is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
webPreferences WebMapPreferences
Set of web map preferences.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() GoogleMapState
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

Static Methods

init(String apiKey) → void
Initializer of GoogleMapCross.
of(GlobalKey<GoogleMapStateBase> key) GoogleMapStateBase?
Gets MapOperations interface via provided key of GoogleMapStateBase state.