setState method

  1. @override
void setState(
  1. VoidCallback fn
)
override

Don't rebuild this State object but the State object containing the InheritedWidget. Rebuild all the dependencies of the _InheritedWidget widget.

Implementation

@override
void setState(VoidCallback fn) {
  _buildInherited = true;
  _inheritedStatefulWidget?.setState(fn);
  _buildInherited = false;
}