copyWith method

Comments copyWith({
  1. Authorperm? parent,
  2. Map<String, Comment>? items,
  3. Map<String, List<String>>? children,
})

Implementation

Comments copyWith({
  Authorperm? parent,
  Map<String, Comment>? items,
  Map<String, List<String>>? children,
}) {
  return Comments(
    parent: parent ?? this.parent,
    items: items ?? this.items,
    children: children ?? this.children,
  );
}