SchemaColumn constructor

SchemaColumn(
  1. String name,
  2. ManagedPropertyType type, {
  3. bool? isIndexed = false,
  4. bool? isNullable = false,
  5. bool? autoincrement = false,
  6. bool? isUnique = false,
  7. String? defaultValue,
  8. bool? isPrimaryKey = false,
})

Creates an instance of this type from name, type and other properties.

Implementation

SchemaColumn(
  this.name,
  ManagedPropertyType type, {
  this.isIndexed = false,
  this.isNullable = false,
  this.autoincrement = false,
  this.isUnique = false,
  this.defaultValue,
  this.isPrimaryKey = false,
}) {
  _type = typeStringForType(type);
}