rebuildState method

  1. @override
void rebuildState()
override

Implementation

@override
void rebuildState() {
  if (watch != null && (_snapState.hasData | _snapState.isIdle)) {
    final w = watch!(_snapState.data);
    if (deepEquality.equals(w, _cachedWatch)) {
      return;
    }
    _cachedWatch = w;
  }
  super.rebuildState();
}