clearText method

void clearText(
  1. dynamic controller
)

Implementation

void clearText(controller) {
  controller.clear();
  isTextEmpty.value = true;
  update(); // Update the state to empty
}