onSetState method

void onSetState(
  1. String text
)

Implementation

void onSetState(String text) {
  iconText = text;
  setState(() {});
}