setCacheOfThisScope method

  1. @override
void setCacheOfThisScope(
  1. Widget widget,
  2. dynamic newCacheValue, {
  3. required bool isInitiator,
})
inherited

Implementation

@override
void setCacheOfThisScope(Widget widget, dynamic newCacheValue,
    {required bool isInitiator}) {
  if (isInitiator) {
    _initiatorCacheMap[widget.hashCode] = newCacheValue;
  } else {
    final initiator = _participatorAndInitiatorMap[widget.hashCode];
    _initiatorCacheMap[initiator.hashCode] = newCacheValue;
  }
}