turnONGps method

Future<bool> turnONGps()

Implementation

Future<bool> turnONGps() async {
  var platform = const MethodChannel('com.csi.sellon');
  try {
    var result = await platform.invokeMethod('onGps');
    if (result == "" || result == null) {
      result = "";
    }

    return result;
  } on PlatformException {
    rethrow;
  }
}