setOwnerId method

  1. @override
void setOwnerId(
  1. EntityId entityId
)

Implementation

@override
void setOwnerId(EntityId entityId) {
  if (entityId.entityType == EntityType.CUSTOMER) {
    customerId = CustomerId(entityId.id!);
  } else {
    customerId = CustomerId(nullUuid);
  }
}