ManagedPropertyDescription constructor Null safety

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,
    bool autoincrement = false,
    List<ManagedValidator> validators = const []})
    : isUnique = unique,
      isIndexed = indexed,
      isNullable = nullable,
      isIncludedInDefaultResultSet = includedInDefaultResultSet,
      autoincrement = autoincrement,
      _validators = validators {
  _validators.forEach((v) => v.property = this);
}