requestLocationPermission static method
Requests location permission from the platform (web-only helper).
On web platforms this method asks the browser for location permission
and resolves to true when the permission is granted. On native
platforms (Android/iOS) this method is not implemented and platform
specific permission flows (for example using permission_handler) must
be used instead.
Returns
- A Future<bool> that completes to
truewhen permission is granted on web, otherwisefalse.
Throws
- UnimplementedError on Android/iOS.
Implementation
static Future<bool> requestLocationPermission() {
return GemKitPlatform.instance.askForLocationPermission();
}