setLocation static method
Implementation
static void setLocation(IACoordinate coordinate) {
IALocation pos;
if (coordinate is IALocation) {
pos = coordinate;
} else {
pos = IALocation.fromCoordinate(coordinate, timestamp: DateTime.now());
}
_nativeInitialized(
'setLocation', [pos.latitude, pos.longitude, pos.floor, pos.accuracy]);
}