onElementValueAssigned method

  1. @override
void onElementValueAssigned(
  1. Element<N> element,
  2. bool autoDispose
)
override

Implementation

@override
void onElementValueAssigned(Element<N> element, bool autoDispose) {
  if (autoDispose) {
    element.value?.setDisposableCallback(
      () => dispose(
        tag: element.ref.tag,
      ),
    );
  }
}