removeTimingsCallback method

void removeTimingsCallback(
  1. TimingsCallback callback
)

Removes a callback that was earlier added by addTimingsCallback.

Implementation

void removeTimingsCallback(TimingsCallback callback) {
  assert(_timingsCallbacks.contains(callback));
  _timingsCallbacks.remove(callback);
  if (_timingsCallbacks.isEmpty) {
    platformDispatcher.onReportTimings = null;
  }
}