Snapshot constructor

Snapshot(
  1. {@required Document document,
  2. @required Map<String, Object> data,
  3. bool exists: true,
  4. String versionId,
  5. Object vendorData}
)

Implementation

Snapshot({
  @required this.document,
  @required this.data,
  this.exists = true,
  this.versionId,
  this.vendorData,
})  : assert(document != null),
      assert(exists != null);