ensureFrameCallbacksRegistered method Null safety

  1. @protected
void ensureFrameCallbacksRegistered()
protected">@protected

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

Implementation

@protected
void ensureFrameCallbacksRegistered() {
  platformDispatcher.onBeginFrame ??= _handleBeginFrame;
  platformDispatcher.onDrawFrame ??= _handleDrawFrame;
}