copyWith method
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,
})
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,
);
}