copyWith method

Location copyWith({
  1. double? latitude,
  2. double? longitude,
  3. double? horizontalAccuracy,
})

Implementation

Location copyWith({
  double? latitude,
  double? longitude,
  double? horizontalAccuracy,
}) =>
    Location(
      latitude: latitude ?? this.latitude,
      longitude: longitude ?? this.longitude,
      horizontalAccuracy: horizontalAccuracy ?? this.horizontalAccuracy,
    );