resetDefaultState method

  1. @override
void resetDefaultState([
  1. VoidCallback? fn
])
override

Implementation

@override
void resetDefaultState([VoidCallback? fn]) {
  super.resetDefaultState();
  inheritedInjects.clear();
  _cachedWatch = null;
  _shouldConnectWithGlobal = null;
  _isInheritedDirty = false;
  fn?.call();
}