Snapshot constructor

Snapshot({
  1. Any? state,
  2. Version? version,
  3. Timestamp? timestamp,
})

Implementation

factory Snapshot({
  $5.Any? state,
  $40.Version? version,
  $4.Timestamp? timestamp,
}) {
  final _result = create();
  if (state != null) {
    _result.state = state;
  }
  if (version != null) {
    _result.version = version;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  return _result;
}