GeoCircle class

Represents a circular geofence area.

A GeoCircle is defined by a center point and a radius in meters. It can be used to check if a point lies within the circular boundary.

Example:

final circle = GeoCircle(
  center: GeoPoint(latitude: 37.7749, longitude: -122.4194),
  radius: 500, // 500 meters
);

Constructors

GeoCircle({required GeoPoint center, required double radius})
Creates a new GeoCircle with the given center and radius.
const
GeoCircle.fromMap(Map<String, dynamic> map)
Creates a GeoCircle from a map containing center and radius data.
factory

Properties

area double
Returns the area of this circle in square meters.
no setter
center GeoPoint
The center point of the circle.
final
circumference double
Returns the circumference of this circle in meters.
no setter
hashCode int
Returns a hash code for this GeoCircle.
no setteroverride
radius double
The radius of the circle in meters.
final
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
toMap() Map<String, dynamic>
Converts this GeoCircle to a map.
toString() String
Returns a string representation of this circle.
override

Operators

operator ==(Object other) bool
Compares this GeoCircle with other for equality.
override