EasyGeofencing class

/ Geofence Package ROOT class which have three important public functions startGeoFenceService(),stopGeoFenceService(),getGeoFenceStream()

Constructors

EasyGeofencing()

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

distanceBetween(dynamic lat1, dynamic lon1, dynamic lat2, dynamic lon2) → dynamic
distanceBetween to find distance between two geofence points outside the class to with full of precisions
getGeofenceStream() Stream<GeofenceStatus>?
For getting geofence event stream property which is basically returns _geostream
startGeofenceService({required String? pointedLatitude, required String? pointedLongitude, required String? radiusMeter, int? eventPeriodInSeconds}) → dynamic
startGeofenceService To start the geofence service this method takes this required following parameters pointedLatitude is the latitude of geofencing area center which is String datatype pointedLongitude is the longitude of geofencing area center which is String datatype radiusMeter is the radius of geofencing area in meters radiusMeter takes value is in String datatype and eventPeriodInSeconds will determine whether the stream listener period in seconds eventPeriodInSeconds takes value in int The purpose of this method is to initialize and start the geofencing service. At first it will check location permission and if enabled then it will start listening the current location changes then calculate the distance of changes point to the allocated geofencing area points
stopGeofenceService() → dynamic
stopGeofenceService to stop the geofencing service if the _positionStream is not null then it will cancel the subscription of the stream