ColumnDefinition constructor

const ColumnDefinition({
  1. required String name,
  2. required ColumnType type,
  3. bool unsigned = false,
  4. bool nullable = false,
  5. bool unique = false,
  6. bool indexed = false,
  7. bool primaryKey = false,
  8. bool autoIncrement = false,
  9. ColumnDefault? defaultValue,
  10. String? comment,
  11. String? charset,
  12. String? collation,
  13. String? afterColumn,
  14. bool first = false,
  15. String? generatedAs,
  16. String? storedAs,
  17. String? virtualAs,
  18. bool useCurrentOnUpdate = false,
  19. bool invisible = false,
  20. bool always = false,
  21. List<String>? allowedValues,
  22. Map<String, ColumnDriverOverride> driverOverrides = const {},
})

Implementation

const ColumnDefinition({
  required this.name,
  required this.type,
  this.unsigned = false,
  this.nullable = false,
  this.unique = false,
  this.indexed = false,
  this.primaryKey = false,
  this.autoIncrement = false,
  this.defaultValue,
  this.comment,
  this.charset,
  this.collation,
  this.afterColumn,
  this.first = false,
  this.generatedAs,
  this.storedAs,
  this.virtualAs,
  this.useCurrentOnUpdate = false,
  this.invisible = false,
  this.always = false,
  this.allowedValues,
  this.driverOverrides = const {},
});