text method

void text(
  1. TextBuilder builder
)

Created a input text field

final text = TextBuilder('custom_paragraph_id')
  ..setLabel('Foo')
  ..setPlaceholder('Choose a value');

final ModalBuilder modal = ModalBuilder(customId: 'my_modal', label: 'My modal')
  .text(text);

Implementation

void text (TextBuilder builder) {
  components.add(RowBuilder([builder]));
}