paragraph method
void
paragraph({
- required String customId,
- required String title,
- String? placeholder,
- String? defaultValue,
- DialogFieldConstraint? constraint,
Implementation
void paragraph(
{required String customId,
required String title,
String? placeholder,
String? defaultValue,
DialogFieldConstraint? constraint}) {
final element = DialogElementBuilder.paragraph(customId);
if (placeholder != null) {
element.setPlaceholder(placeholder);
}
if (defaultValue != null) {
element.setDefaultValue(defaultValue);
}
if (constraint != null) {
element.setConstraint(
maxLength: constraint.maxLength,
minLength: constraint.minLength,
required: constraint.required,
);
}
element.setLabel(title);
final row = RowBuilder()..addComponent(element);
_elements.add(row);
}