dispose method

  1. @override
Element<N>? dispose({
  1. String? tag,
})
override

Implementation

@override
Element<N>? dispose({String? tag}) {
  final element = super.dispose(tag: tag);

  final notifier = element?.value;
  if (notifier != null) {
    notifier.dispose();
  }
  return element;
}