copyWith method

Task copyWith({
  1. bool? done,
})

Implementation

Task copyWith({bool? done}) => Task(
      id: id,
      title: title,
      description: description,
      done: done ?? this.done,
      createdAt: createdAt,
    );