copyWith method

Geolocation copyWith({
  1. LocationServices? locationServices,
  2. DateTime? timestamp,
  3. GeolocationCoordinate? coordinate,
  4. GeolocationAltitude? altitude,
  5. GeolocationHeading? heading,
  6. GeolocationSpeed? speed,
})

Implementation

Geolocation copyWith(
    {LocationServices? locationServices,
    DateTime? timestamp,
    GeolocationCoordinate? coordinate,
    GeolocationAltitude? altitude,
    GeolocationHeading? heading,
    GeolocationSpeed? speed}) {
  return Geolocation(
      locationServices: locationServices ?? this.locationServices,
      timestamp: timestamp ?? this.timestamp,
      coordinate: coordinate ?? this.coordinate,
      altitude: altitude ?? this.altitude,
      heading: heading ?? this.heading,
      speed: speed ?? this.speed);
}