addToOnDisposeList method

dynamic addToOnDisposeList(
  1. void disposeCallback()
)

Implementation

addToOnDisposeList (void Function() disposeCallback) {
  if (disposed) { disposeCallback(); }
  else { disposeList.add(disposeCallback); }
}