fixed doc comments
This commit is contained in:
@@ -17,7 +17,7 @@ class GeolocatorService {
|
||||
/// @throws LocationDisabledException if location services are disabled
|
||||
/// @throws LocationForbiddenException if location permission is denied
|
||||
/// @throws NeedAlwaysLocation if always-on permission is needed but not granted
|
||||
/// @return Future<Position> The current GPS position
|
||||
/// @return Future[Position] The current GPS position
|
||||
static Future<Position> deteterminePosition({bool alwaysOnNeeded = false}) async {
|
||||
bool locationEnabled;
|
||||
LocationPermission permissionGiven;
|
||||
@@ -46,7 +46,7 @@ class GeolocatorService {
|
||||
}
|
||||
|
||||
/// Check if always-on location permission is enabled
|
||||
/// @return Future<bool> True if always-on permission is granted or location is disabled
|
||||
/// @return Future[bool] True if always-on permission is granted or location is disabled
|
||||
static Future<bool> alwaysPositionEnabled() async {
|
||||
LocationPermission permissionGiven = await Geolocator.checkPermission();
|
||||
bool locationEnabled = await Geolocator.isLocationServiceEnabled();
|
||||
|
||||
Reference in New Issue
Block a user