ModelProperty.create constructor

ModelProperty.create(
  1. IdUid id,
  2. String? name,
  3. int? type, {
  4. int flags = 0,
  5. String? indexId,
  6. ModelEntity? entity,
  7. String? dartFieldType,
  8. String? relationTarget,
})

Implementation

ModelProperty.create(this.id, String? name, int? type,
    {int flags = 0,
    String? indexId,
    this.entity,
    String? dartFieldType,
    this.relationTarget})
    : _dartFieldType = dartFieldType {
  this.name = name;
  this.type = type;
  this.flags = flags;
  this.indexId = indexId == null ? null : IdUid.fromString(indexId);
}