LocationHelperUtil class

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

calculateDistanceBetweenTwoPoints({required double latitude1, required double longitude1, required double latitude2, required double longitude2}) double
To get the distance between the 2 points for latitudes and longitudes
enableBackgroundMode({required bool isEnabled}) Future<bool>
Enables or disables service in the background mode.
getCurrentLocationData() Future<LocationDataModel?>
isBackgroundModeEnabled() Future<bool>
To check if the background mode enabled
isLocationServiceEnabled() Future<bool>
To check if the GPS is enabled
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestEnableLocationService() Future<bool>
To enable the location service GPS Service
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance LocationHelperUtil
the one and only instance of this singleton
final