GeofenceFeature class abstract final

Creates features to monitor from a circle, a polygon, or a multipolygon.

The radius and dwell time are written into the feature properties with GeofencingPropertiesKeys. Without a dwell time, no dwell events are reported.

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

circle({required String id, required Point center, required double radius, Duration? dwellTime, Map<String, dynamic> properties = const {}}) → Feature<GeometryObject>
The area within radius meters of center. radius is rounded to whole meters.
multiPolygon({required String id, required MultiPolygon multiPolygon, Duration? dwellTime, Map<String, dynamic> properties = const {}}) → Feature<GeometryObject>
The area inside any polygon of multiPolygon.
polygon({required String id, required Polygon polygon, Duration? dwellTime, Map<String, dynamic> properties = const {}}) → Feature<GeometryObject>
The area inside polygon.