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 theGeofenceRegion
class with the provided values. It takes in theregionId
,lat
,lng
,radius
, andregionType
as parameters and assigns them to the corresponding instance variables. This allows you to create a newGeofenceRegion
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 namedlat
of 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 namedlng
of 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 namedradius
of 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 namedregionId
of typeString
. This variable is used to store the identifier of a geofence region.getter/setter pair - regionType ↔ RegionType
-
RegionType regionType;
is declaring a variable namedregionType
of typeRegionType
. This variable is used to store the type of a geofence region. TheRegionType
enum defines two possible values:circle
andisochrone
. By assigning a value of typeRegionType
to theregionType
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