copyWithWrapped method

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

Implementation

Geolocation copyWithWrapped(
    {Wrapped<LocationServices?>? locationServices,
    Wrapped<DateTime?>? timestamp,
    Wrapped<GeolocationCoordinate?>? coordinate,
    Wrapped<GeolocationAltitude?>? altitude,
    Wrapped<GeolocationHeading?>? heading,
    Wrapped<GeolocationSpeed?>? speed}) {
  return Geolocation(
      locationServices: (locationServices != null
          ? locationServices.value
          : this.locationServices),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      coordinate: (coordinate != null ? coordinate.value : this.coordinate),
      altitude: (altitude != null ? altitude.value : this.altitude),
      heading: (heading != null ? heading.value : this.heading),
      speed: (speed != null ? speed.value : this.speed));
}