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 [], - ResponseModel? responseModel,
- ResponseKey? responseKey,
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 [],
this.responseModel,
this.responseKey,
}) : isUnique = unique,
isIndexed = indexed,
isNullable = nullable,
isIncludedInDefaultResultSet = includedInDefaultResultSet,
_validators = validators {
for (final v in _validators) {
v.property = this;
}
}