copyWith method

MountRecord copyWith({
  1. SyncState? syncState,
})

Returns a copy with a new syncState.

Implementation

MountRecord copyWith({SyncState? syncState}) => MountRecord(
  id: id,
  nodeId: nodeId,
  name: name,
  kind: kind,
  remotePath: remotePath,
  readWrite: readWrite,
  driveId: driveId,
  mountedAt: mountedAt,
  syncState: syncState ?? this.syncState,
  localPath: localPath,
  gitUrl: gitUrl,
  gitBranch: gitBranch,
);