Property constructor
const
Property({
- PropertyType? type,
- int? uid,
- 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});