Snapshot constructor

Snapshot([
  1. String? id
])

Implementation

Snapshot([String? id]) {
  version = 0;
  this.id = id ?? const Uuid().v1;
  createdOn = DateTime.now().toUtc();
}