copyWith method

Notebook copyWith({
  1. User? createdBy,
  2. String? createdDateTime,
  3. String? id,
  4. bool? isDefault,
  5. bool? isShared,
  6. User? lastModifiedBy,
  7. String? lastModifiedDateTime,
  8. List<String>? links,
  9. String? displayName,
  10. String? sectionGroupsUrl,
  11. String? sectionsUrl,
  12. String? self,
  13. String? userRole,
})

Implementation

Notebook copyWith({
  User? createdBy,
  String? createdDateTime,
  String? id,
  bool? isDefault,
  bool? isShared,
  User? lastModifiedBy,
  String? lastModifiedDateTime,
  List<String>? links,
  String? displayName,
  String? sectionGroupsUrl,
  String? sectionsUrl,
  String? self,
  String? userRole,
}) {
  return Notebook(
    createdBy: createdBy ?? this.createdBy,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    id: id ?? this.id,
    isDefault: isDefault ?? this.isDefault,
    isShared: isShared ?? this.isShared,
    lastModifiedBy: lastModifiedBy ?? this.lastModifiedBy,
    lastModifiedDateTime: lastModifiedDateTime ?? this.lastModifiedDateTime,
    links: links ?? this.links,
    displayName: displayName ?? this.displayName,
    sectionGroupsUrl: sectionGroupsUrl ?? this.sectionGroupsUrl,
    sectionsUrl: sectionsUrl ?? this.sectionsUrl,
    self: self ?? this.self,
    userRole: userRole ?? this.userRole,
  );
}