SnapshotItem constructor

SnapshotItem({
  1. SnapshotStoreItem? store,
  2. SnapshotIAVLItem? iavl,
  3. SnapshotExtensionMeta? extension_3,
  4. SnapshotExtensionPayload? extensionPayload,
})

Implementation

factory SnapshotItem({
  SnapshotStoreItem? store,
  SnapshotIAVLItem? iavl,
  SnapshotExtensionMeta? extension_3,
  SnapshotExtensionPayload? extensionPayload,
}) {
  final _result = create();
  if (store != null) {
    _result.store = store;
  }
  if (iavl != null) {
    _result.iavl = iavl;
  }
  if (extension_3 != null) {
    _result.extension_3 = extension_3;
  }
  if (extensionPayload != null) {
    _result.extensionPayload = extensionPayload;
  }
  return _result;
}