Geofence class Null safety

Geofence plugin class

Constructors

Geofence()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

getGeofenceStream() Stream<GeofenceEvent>?
For getting geofence event stream property which is basically returns _geostream
startGeofenceService({required String pointedLatitude, required String pointedLongitude, required String radiusMeter, required 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