addInput method
Created a input text field
Example :
final ModalBuilder modal = ModalBuilder(customId: 'my_modal', label: 'My modal')
.addInput(customId: 'my_text', label: 'Premier texte');
Implementation
ModalBuilder addInput ({ required String customId, required String label, bool? required, int? minLength, int? maxLength, String? placeholder, String? value }) {
_addInput(customId: customId, label: label, style: TextInputStyle.input, required: required, minLength: minLength, maxLength: maxLength, placeholder: placeholder, value: value);
return this;
}