addParagraph method

ModalBuilder addParagraph({
  1. required String customId,
  2. required String label,
  3. bool? required,
  4. int? minLength,
  5. int? maxLength,
  6. String? placeholder,
  7. String? value,
})

Created a input text field with multiple lines

Example :

final ModalBuilder modal = ModalBuilder(customId: 'my_modal', label: 'My modal')
  .addParagraph(customId: 'my_paragraph', label: 'Second texte');

Implementation

ModalBuilder addParagraph ({ required String customId, required String label, bool? required, int? minLength, int? maxLength, String? placeholder, String? value }) {
  _addInput(customId: customId, label: label, style: TextInputStyle.paragraph, required: required, minLength: minLength, maxLength: maxLength, placeholder: placeholder, value: value);
  return this;
}