dispose method
Call this method to signal to SchedulerBinding that a request for a DartPerformanceMode is no longer needed.
This method must only be called once per object.
Implementation
void dispose() {
  assert(_cleanup != null);
  assert(debugMaybeDispatchDisposed(this));
  _cleanup!();
  _cleanup = null;
}