copyWith method

PermissionDetails copyWith({
  1. List<SharePermission>? editPermissions,
  2. List<SharePermission>? sharePermissions,
})

Implementation

PermissionDetails copyWith(
    {List<SharePermission>? editPermissions,
    List<SharePermission>? sharePermissions}) {
  return PermissionDetails(
    editPermissions: editPermissions ?? this.editPermissions,
    sharePermissions: sharePermissions ?? this.sharePermissions,
  );
}