setState method

bool setState(
  1. VoidCallback fn
)

Notify the framework of a rebuild in the next scheduled frame

Implementation

bool setState(VoidCallback fn) {
  final set = _state != null;
  if (set) {
    // ignore: invalid_use_of_protected_member
    _state!.setState(fn);
  }
  return set;
}