copyWith method

Todo copyWith({
  1. String? id,
  2. String? title,
  3. bool? isCompleted,
})

Implementation

Todo copyWith({String? id, String? title, bool? isCompleted}) {
  return Todo(
    id: id ?? this.id,
    title: title ?? this.title,
    isCompleted: isCompleted ?? this.isCompleted,
  );
}