onSetState method

void onSetState(
  1. String text
)

Implementation

void onSetState(String text) {
  this.text = text;
  setState(() {});
}