position abstract method

Future<Position> position({
  1. Map<String, dynamic>? extra,
})

Get the current GeoPoint (latitude, longitude) and altitude (mm).

var position = await myMovementSensor.position();
var altitude = position.altitude;
var coordinates = position.coordinates;

For more information, see Movement Sensor component.

Implementation

Future<Position> position({Map<String, dynamic>? extra});