copyWith method

DashboardDetails copyWith({
  1. String? description,
  2. List<SharePermission>? editPermissions,
  3. String? name,
  4. List<SharePermission>? sharePermissions,
})

Implementation

DashboardDetails copyWith(
    {String? description,
    List<SharePermission>? editPermissions,
    String? name,
    List<SharePermission>? sharePermissions}) {
  return DashboardDetails(
    description: description ?? this.description,
    editPermissions: editPermissions ?? this.editPermissions,
    name: name ?? this.name,
    sharePermissions: sharePermissions ?? this.sharePermissions,
  );
}