copyWith method

Dashboard copyWith({
  1. int? automaticRefreshMs,
  2. String? description,
  3. List<SharePermission>? editPermissions,
  4. String? id,
  5. bool? isFavourite,
  6. bool? isWritable,
  7. String? name,
  8. UserBean? owner,
  9. int? popularity,
  10. int? rank,
  11. String? self,
  12. List<SharePermission>? sharePermissions,
  13. bool? systemDashboard,
  14. String? view,
})

Implementation

Dashboard copyWith(
    {int? automaticRefreshMs,
    String? description,
    List<SharePermission>? editPermissions,
    String? id,
    bool? isFavourite,
    bool? isWritable,
    String? name,
    UserBean? owner,
    int? popularity,
    int? rank,
    String? self,
    List<SharePermission>? sharePermissions,
    bool? systemDashboard,
    String? view}) {
  return Dashboard(
    automaticRefreshMs: automaticRefreshMs ?? this.automaticRefreshMs,
    description: description ?? this.description,
    editPermissions: editPermissions ?? this.editPermissions,
    id: id ?? this.id,
    isFavourite: isFavourite ?? this.isFavourite,
    isWritable: isWritable ?? this.isWritable,
    name: name ?? this.name,
    owner: owner ?? this.owner,
    popularity: popularity ?? this.popularity,
    rank: rank ?? this.rank,
    self: self ?? this.self,
    sharePermissions: sharePermissions ?? this.sharePermissions,
    systemDashboard: systemDashboard ?? this.systemDashboard,
    view: view ?? this.view,
  );
}