position abstract method
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});