ensureFrameCallbacksRegistered method Null safety

  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(window.onDrawFrame == null);
  assert(window.onBeginFrame == null);
}