copyWith method
Implementation
TestGroupUnit copyWith({
int? id,
String? name,
int? parentID,
List<TestCaseUnit>? tests,
}) {
return TestGroupUnit(
id: id ?? this.id,
name: name ?? this.name,
parentID: parentID ?? this.parentID,
tests: tests ?? this.tests,
);
}