copyWith method

GpsPoint copyWith({
  1. GpsTime? time,
  2. double? latitude,
  3. double? longitude,
  4. double? altitude,

Create a copy of the point with optionally one or more of its fields set to new values.


GpsPoint copyWith({
  GpsTime? time,
  double? latitude,
  double? longitude,
  double? altitude,
}) {
  return GpsPoint(
    time: time ?? this.time,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    altitude: altitude ?? this.altitude,