release method

Future<void> release({
  1. bool disableCatchAndRelease = false,
})

Implementation

Future<void> release({bool disableCatchAndRelease = false}) async {
  while (_catchReleaseStates.isNotEmpty) {
    final states = <FeatureState>[..._catchReleaseStates.values];
    _catchReleaseStates.clear();
    states.forEach((f) => _featureUpdate(f));
  }

  if (disableCatchAndRelease == true) {
    _catchAndReleaseMode = false;
  }
}