setLocation static method

void setLocation(
  1. IACoordinate coordinate
)

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]);
}