copyWith method
Implementation
TestTreeModel copyWith({
String? id,
String? pid,
bool? checked,
String? c1,
String? c2,
}) {
return TestTreeModel(
id: id ?? this.id,
pid: pid ?? this.pid,
checked: checked ?? this.checked,
c1: c1 ?? this.c1,
c2: c2 ?? this.c2,
);
}