copyWith method

LocationCourse copyWith({
  1. Bearing? value,
  2. Optional<Bearing?>? accuracy,
})

Implementation

LocationCourse copyWith({
  Bearing? value,
  Optional<Bearing?>? accuracy
}) {
  return LocationCourse(
    value: value ?? this.value,
    accuracy: accuracy != null ? accuracy.value : this.accuracy
  );
}