addEffectDisposeCallback method

void addEffectDisposeCallback(
  1. void callback()
)

Add a new effect dispose callback to call when the widget is disposed

Implementation

void addEffectDisposeCallback(void Function() callback) {
  cleanupCallbacks.add(callback);
}