GeofenceRegion class

The GeofenceRegion class represents a region for geofencing purposes.

Constructors

GeofenceRegion(String regionId, double lat, double lng, double radius, RegionType regionType)
The GeofenceRegion constructor is initializing the instance variables of the GeofenceRegion class with the provided values. It takes in the regionId, lat, lng, radius, and regionType as parameters and assigns them to the corresponding instance variables. This allows you to create a new GeofenceRegion object with the specified values for each property.

Properties

hashCode int
The hash code for this object.
no setterinherited
lat double
double lat; is declaring a variable named lat of type double. This variable is used to store the latitude value of a geofence region.
getter/setter pair
lng double
double lng; is declaring a variable named lng of type double. This variable is used to store the longitude value of a geofence region.
getter/setter pair
radius double
double radius; is declaring a variable named radius of type double. This variable is used to store the radius value of a geofence region. The radius represents the distance from the center of the geofence region to its outer boundary.
getter/setter pair
regionId String
String regionId; is declaring a variable named regionId of type String. This variable is used to store the identifier of a geofence region.
getter/setter pair
regionType RegionType
RegionType regionType; is declaring a variable named regionType of type RegionType. This variable is used to store the type of a geofence region. The RegionType enum defines two possible values: circle and isochrone. By assigning a value of type RegionType to the regionType variable, we can specify the type of the geofence region.
getter/setter pair
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
toJson() Map<String, dynamic>
The function converts the given variables into a JSON object. @returns A Map<String, dynamic> object is being returned.
toString() String
A string representation of this object.
inherited

Operators

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