copyWith method

PartitionsModel copyWith({
  1. String? drive,
  2. String? name,
})

Implementation

PartitionsModel copyWith({
  String? drive,
  String? name,
}) {
  return PartitionsModel(
    drive: drive ?? this.drive,
    name: name ?? this.name,
  );
}