copyWith method

MountRecord copyWith({
  1. SyncState? syncState,
  2. FileManifest? baselineManifest,
  3. String? currentBranch,
})

Returns a copy with a new syncState, baselineManifest and/or currentBranch.

Implementation

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