copyWith method

TransientState<T> copyWith({
  1. T? item,
  2. LatLng? origin,
  3. LatLng? current,
})

Implementation

TransientState<T> copyWith({
  T? item,
  LatLng? origin,
  LatLng? current,
}) {
  return TransientState<T>(
    item: item ?? this.item,
    origin: origin ?? this.origin,
    current: current ?? this.current,
  );
}