copyWith method

ChildPage copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. String? spaceId,
  5. int? childPosition,
})

Implementation

ChildPage copyWith(
    {String? id,
    String? status,
    String? title,
    String? spaceId,
    int? childPosition}) {
  return ChildPage(
    id: id ?? this.id,
    status: status ?? this.status,
    title: title ?? this.title,
    spaceId: spaceId ?? this.spaceId,
    childPosition: childPosition ?? this.childPosition,
  );
}