Entity.reserved constructor

  1. @protected
const Entity.reserved(
  1. int id
)

Creates a new Entity with the given id. The id must be less than 0.

Negative id values are reserved exclusively for internal use by the df_di package and UniqueEntity. They should not be used directly in your code.

Implementation

@protected
const Entity.reserved(this.id)
  : assert(id < 0, 'Entity id must be negative!');