string static method

ModifyColumn<String> string(
  1. String name, {
  2. bool isNullable = false,
  3. int length = 20,
  4. bool primary = false,
  5. String? foreignTable,
  6. String? foreignCol,
  7. String? uniqueGroup,
})

Implementation

static ModifyColumn<String> string(String name,
    {core.bool isNullable = false,
    core.int length = 20,
    core.bool primary = false,
    String? foreignTable,
    String? foreignCol,
    String? uniqueGroup}) {
  Foreign? foreign;
  if (foreignTable != null) {
    foreign = Foreign(foreignTable, foreignCol != null ? foreignCol : name);
  }
  return ModifyColumn(CreateStr(name,
      isNullable: isNullable,
      length: length,
      isPrimary: primary,
      foreignKey: foreign,
      uniqueGroup: uniqueGroup));
}