copyWith method

PermissionGrant copyWith({
  1. PermissionHolder? holder,
  2. int? id,
  3. String? permission,
  4. String? self,
})

Implementation

PermissionGrant copyWith(
    {PermissionHolder? holder, int? id, String? permission, String? self}) {
  return PermissionGrant(
    holder: holder ?? this.holder,
    id: id ?? this.id,
    permission: permission ?? this.permission,
    self: self ?? this.self,
  );
}