copyWith method

Document<E> copyWith(
  1. E entity
)

Implementation

Document<E> copyWith(E entity) {
  return Document<E>(
    ref,
    entity ?? this.entity,
  );
}