enableLocation method

Future<void> enableLocation()

Enables location.

On Android, opens the location settings screen and toggles the location switch to enable location. If the location already enabled, it does nothing.

Doesn't work for iOS.

Implementation

Future<void> enableLocation() =>
    _platform.action(android: _platform.android.enableLocation);