SuperKid 2020. 3. 19. 15:22

geolocator

 

[Ko]

위치 정보를 가져오기 위해 geolocator package 사용.

void getLocation() async {

  Position position = await Geolocator()

      .getCurrentPosition(desiredAccuracy: LocationAccuracy.high);

 

[En]

Use geolocator package to get location information.

void getLocation() async {

  Position position = await Geolocator()

      .getCurrentPosition(desiredAccuracy: LocationAccuracy.high);