openLocation method
Implementation
Future<String> openLocation() async {
// sellon.flutter.vicky/openLocationSetting
var platform =
const MethodChannel('sellon.flutter.vicky/openLocationSetting');
try {
var result = await platform.invokeMethod('open');
// print("di panggil lagi2");
if (result == "" || result == null) {
result = "";
}
return result;
// print("result Apple delete ${resultname}");
// batteryLevel = 'Battery level at $result % .';
} on PlatformException {
// batteryLevel = "Failed applename '${e.message}'.";
rethrow;
}
}