NimbostratusDocumentSnapshot<T> constructor

NimbostratusDocumentSnapshot<T>({
  1. required T? value,
  2. required Stream<NimbostratusDocumentSnapshot<T?>> stream,
  3. required DocumentReference<T> reference,
  4. bool isOptimistic = false,
  5. SnapshotMetadata? metadata,
})

Implementation

NimbostratusDocumentSnapshot({
  required this.value,
  required this.stream,
  required this.reference,
  this.isOptimistic = false,
  SnapshotMetadata? metadata,
})  : id = reference.id,
      metadata = metadata ?? CacheSnapshotMetadata();