onReleaseAll method

void onReleaseAll(
  1. void releaseResourceCallback()
)

Registers releaseResourceCallback to be executed on releaseAll.

Implementation

void onReleaseAll(void Function() releaseResourceCallback) {
  _managedResourceReleaseCallbacks.add(releaseResourceCallback);
}