Property constructor

const Property({
  1. PropertyType? type,
  2. int? uid,
  3. bool signed = true,
})

Optionally configures how a field of an Entity class is stored in the database.

For example:

// Store int as a byte (8-bit integer)
@Property(type: PropertyType.byte)
int? byteValue;

Learn more about customizing the database type of a property in the online documentation.

Implementation

const Property({this.type, this.uid, this.signed = true});