copyWith method

TestTreeModel copyWith({
  1. String? id,
  2. String? pid,
  3. bool? checked,
  4. String? c1,
  5. String? c2,
})

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