copyWith method
Copy this Coordinate with the given attributes if given not null.
Implementation
Coordinate copyWith({
num? latitude,
num? longitude,
}) {
return Coordinate(
latitude: latitude ?? this.latitude,
longitude: longitude ?? this.longitude,
);
}