InteractiveMarker class
A specialized Marker that carries additional options for advanced features.
Use options to attach behavioral configurations like LabelMarkerOptions, PopupMarkerOptions, ActionMarkerOptions, etc.
- Implementers
- Available extensions
Constructors
-
InteractiveMarker({required LatLng point, required Widget child, Key? key, double width = 30, double height = 30, Alignment? alignment, bool? rotate, List<
MarkerOptions> options = const []}) -
const
-
InteractiveMarker.safe({required LatLng point, required Widget child, Key? key, double width = 30, double height = 30, Alignment? alignment, bool? rotate, List<
MarkerOptions> options = const []}) -
Creates an InteractiveMarker performing checks on
options.factory
Properties
- actionOptions → ActionMarkerOptions?
-
no setter
- activeOptions → ActiveMarkerOptions?
-
no setter
- alignment → Alignment?
-
Alignment of the marker relative to the normal center at
pointfinalinherited - child → Widget
-
Widget tree of the marker, sized by
width&heightfinalinherited - gestureOptions → GestureMarkerOptions?
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
Height of
childfinalinherited -
final
- isHidden → bool
-
no setter
- key → Key?
-
Provide an optional Key for the
Marker. This key will get passed through to the created marker widget.finalinherited - labelOptions → LabelMarkerOptions?
-
no setter
-
options
→ List<
MarkerOptions> -
List of options attached to this marker.
final
- point → LatLng
-
Coordinates of the marker
finalinherited
- popupOptions → PopupMarkerOptions?
-
no setter
- rotate → bool?
-
Whether to counter rotate this marker to the map's rotation, to keep a
fixed orientation
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
Width of
childfinalinherited
Methods
-
copyWith(
{LatLng? point, Widget? child, double? width, double? height, Alignment? alignment, bool? rotate, List< MarkerOptions> ? options}) → InteractiveMarker - Creates a copy of this marker with the given fields replaced with new values.
-
copyWith(
{LatLng? point, Widget? child, double? width, double? height, Alignment? alignment, bool? rotate}) → Marker -
Available on Marker, provided by the MarkerX extension
-
ensureHasKey(
) → void -
Available on Marker, provided by the MarkerX extension
-
inMapBounds(
MapCamera cam, {MarkerLayerOptions? options, bool? active}) → bool -
Available on Marker, provided by the MarkerX extension
-
inPixelsBounds(
MapCamera cam, Offset offset, {MarkerLayerOptions? options, bool? active}) → bool -
Available on Marker, provided by the MarkerX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pixelBounds(
MapCamera cam, {MarkerLayerOptions? options, bool? active}) → Rect -
Available on Marker, provided by the MarkerX extension
-
resolveScale(
{MarkerLayerOptions? options, bool active = false, bool touch = false}) → double -
Available on Marker, provided by the MarkerX extension
-
resolveSize(
{MarkerLayerOptions? options, bool active = false, bool touch = false}) → Size -
Available on Marker, provided by the MarkerX extension
-
toString(
) → String -
A string representation of this object.
override
-
withOption<
T extends MarkerOptions> (T opt) → InteractiveMarker -
Returns a copy of this marker with the specified option
optadded or updated. -
withoutOption<
T extends MarkerOptions> () → InteractiveMarker -
Returns a copy of this marker with the option of type
Tremoved.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromMarker(
Marker marker) → InteractiveMarker -
Converts a standard
Markerto an InteractiveMarker.