CustomMapMarkerBuilder class

A utility class for generating custom map markers from Flutter widgets.

This class provides a method to convert any Flutter widget into a BitmapDescriptor that can be used as a custom marker icon in google_maps_flutter.

Example usage:

final markerIcon = await CustomMapMarkerBuilder.fromWidget(
  context: context,
  marker: MyCustomMarkerWidget(),
);

Constructors

CustomMapMarkerBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromWidget({required BuildContext context, required Widget marker, double pixelRatio = 3.0}) Future<BitmapDescriptor>
Converts a Flutter widget into a BitmapDescriptor that can be used as a custom marker in Google Maps.