ManagedPropertyDescription constructor

ManagedPropertyDescription(
  1. ManagedEntity entity,
  2. String name,
  3. ManagedType? type,
  4. Type? declaredType, {
  5. bool unique = false,
  6. bool indexed = false,
  7. bool nullable = false,
  8. bool includedInDefaultResultSet = true,
  9. bool autoincrement = false,
  10. List<ManagedValidator?> validators = const [],
})

Implementation

ManagedPropertyDescription(
  this.entity,
  this.name,
  this.type,
  this.declaredType, {
  bool unique = false,
  bool indexed = false,
  bool nullable = false,
  bool includedInDefaultResultSet = true,
  this.autoincrement = false,
  List<ManagedValidator?> validators = const [],
})  : isUnique = unique,
      isIndexed = indexed,
      isNullable = nullable,
      isIncludedInDefaultResultSet = includedInDefaultResultSet,
      _validators = validators {
  for (final v in _validators) {
    v!.property = this;
  }
}