MKAnnotationIcon class final
What an annotation looks like, mirroring the MKMarkerAnnotationView /
MKAnnotationView split: MKAnnotationIcon.marker is the system balloon
marker with optional markerTintColor / glyph branding, and
MKAnnotationIcon.image supplies fully custom imagery
(MKAnnotationView.image).
See: https://developer.apple.com/documentation/mapkit/mkmarkerannotationview
- Annotations
Constructors
- MKAnnotationIcon.image(Uint8List png)
-
Raw PNG bytes as the annotation image (
MKAnnotationView.image). Render any Flutter widget to a PNG (e.g. viaRenderRepaintBoundary.toImage) and pass it here for a fully custom marker.const - MKAnnotationIcon.marker({Color? markerTintColor, String? glyphText, String? systemImage, Color? glyphTintColor})
-
System balloon marker (
MKMarkerAnnotationView).const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
asset(
String name, {AssetBundle? bundle, String? package, double? devicePixelRatio}) → Future< MKAnnotationIcon> - Load an annotation image from the asset bundle into an MKAnnotationIcon.image.