copyWith method

TestGroupUnit copyWith({
  1. int? id,
  2. String? name,
  3. int? parentID,
  4. List<TestCaseUnit>? tests,
})

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,
  );
}