setState method

void setState(
  1. void fn()
)

Implementation

void setState(void Function() fn) {
  try {
    fn();
  } finally {
    notifyListeners();
  }
}