disposeFamilyParam<N extends FamilyNotifier<dynamic, P, dynamic>, P> method

  1. @override
void disposeFamilyParam<N extends FamilyNotifier<dynamic, P, dynamic>, P>(
  1. BaseProvider<N, dynamic> provider,
  2. P param
)
override

Disposes the param of a family provider. While the ordinary dispose method disposes the whole provider, this method only disposes the param. Calling this method multiple times has no effect.

Implementation

@override
void disposeFamilyParam<N extends FamilyNotifier<dynamic, P, dynamic>, P>(
  BaseProvider<N, dynamic> provider,
  P param,
) {
  final notifier = _getState(provider);
  notifier.disposeParam(param, this);
}