onPressed method

void onPressed()

Implementation

void onPressed() {
  notifyListeners();
}