Field.text constructor

Field.text({
  1. required String name,
  2. required String alias,
  3. required int length,
})

Creates a new FieldType.text field object with the following parameters.

Use this method to create a field. The field will be editable and nullable.

Parameters:

  • name — Name of the field.
  • alias — Alias of the field.
  • length — Length of the field.