GpsStay.fromPoint constructor

GpsStay.fromPoint(
  1. GpsPoint point, {
  2. double? accuracy,
  3. GpsTime? endTime,
})

Constructs a GpsStay from the data in point, with optionally the additional information in accuracy and endTime.

Implementation

GpsStay.fromPoint(GpsPoint point, {this.accuracy, GpsTime? endTime})
    : _endTime = _endTimeToInternal(endTime, point.time),
      super(
        time: point.time,
        latitude: point.latitude,
        longitude: point.longitude,
        altitude: point.altitude,
      );