setField static method

TableField setField(
  1. TableField? field,
  2. String? fName, [
  3. DbType? fType
])

Implementation

static TableField setField(TableField? field, String? fName, [DbType? fType]) {
  if (field == null) {
    field = TableField()..fieldName = fName;
    if (fType != null) {
      field.fieldType = fType;
    }
  }
  return field;
}