GeofenceRegion class
The GeofenceRegion class represents a region for geofencing purposes.
Constructors
- GeofenceRegion(String regionId, double lat, double lng, double radius, RegionType regionType)
-
The
GeofenceRegionconstructor is initializing the instance variables of theGeofenceRegionclass with the provided values. It takes in theregionId,lat,lng,radius, andregionTypeas parameters and assigns them to the corresponding instance variables. This allows you to create a newGeofenceRegionobject 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 namedlatof typedouble. This variable is used to store the latitude value of a geofence region.getter/setter pair - lng ↔ double
-
double lng;is declaring a variable namedlngof typedouble. This variable is used to store the longitude value of a geofence region.getter/setter pair - radius ↔ double
-
double radius;is declaring a variable namedradiusof typedouble. 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 namedregionIdof typeString. This variable is used to store the identifier of a geofence region.getter/setter pair - regionType ↔ RegionType
-
RegionType regionType;is declaring a variable namedregionTypeof typeRegionType. This variable is used to store the type of a geofence region. TheRegionTypeenum defines two possible values:circleandisochrone. By assigning a value of typeRegionTypeto theregionTypevariable, 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