ManagedPropertyDescription constructor
ManagedPropertyDescription(
- ManagedEntity entity,
- String name,
- ManagedType type,
- Type? declaredType, {
- bool unique = false,
- bool indexed = false,
- bool nullable = false,
- bool includedInDefaultResultSet = true,
- bool autoincrement = false,
- 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);
}