text method

DialogBuilder text(
  1. String customId,
  2. dynamic fn(
    1. DialogTextInput
    )
)

Implementation

DialogBuilder text(String customId, Function(DialogTextInput) fn) {
  final element = DialogElementBuilder.input(customId);
  fn(element);

  final row = RowBuilder()..addComponent(element);

  _elements.add(row);
  return this;
}