copyWith method

SprintBean copyWith({
  1. int? id,
  2. String? self,
  3. String? state,
  4. String? name,
  5. String? startDate,
  6. String? endDate,
  7. String? completeDate,
  8. String? createdDate,
  9. int? originBoardId,
  10. String? goal,
})

Implementation

SprintBean copyWith(
    {int? id,
    String? self,
    String? state,
    String? name,
    String? startDate,
    String? endDate,
    String? completeDate,
    String? createdDate,
    int? originBoardId,
    String? goal}) {
  return SprintBean(
    id: id ?? this.id,
    self: self ?? this.self,
    state: state ?? this.state,
    name: name ?? this.name,
    startDate: startDate ?? this.startDate,
    endDate: endDate ?? this.endDate,
    completeDate: completeDate ?? this.completeDate,
    createdDate: createdDate ?? this.createdDate,
    originBoardId: originBoardId ?? this.originBoardId,
    goal: goal ?? this.goal,
  );
}