autoDisposeNotifier<N extends ChangeNotifier?> method
Implementation
@visibleForTesting
@protected
N autoDisposeNotifier<N extends ChangeNotifier?>(N ntf, {String? tag}) {
if (ntf == null) return ntf;
_autoDisposeNotifiers ??= <String, ChangeNotifier>{};
tag ??= '${ntf.hashCode}';
_autoDisposeNotifiers![tag] = ntf;
return ntf;
}