ensureFrameCallbacksRegistered method

  1. @override
void ensureFrameCallbacksRegistered()
override

Ensures callbacks for PlatformDispatcher.onBeginFrame and PlatformDispatcher.onDrawFrame are registered.

Implementation

@override
void ensureFrameCallbacksRegistered() {
  // Leave PlatformDispatcher alone, do nothing.
  assert(platformDispatcher.onDrawFrame == null);
  assert(platformDispatcher.onBeginFrame == null);
}