triggerSubmitted method

void triggerSubmitted({
  1. dynamic submittedText,
})

Implementation

void triggerSubmitted({submittedText}) {
  submittedText == null
      ? textSubmitted!(currentText!)
      : textSubmitted!(submittedText);

  if (clearOnSubmit!) {
    clear();
  }
}