ensureFrameCallbacksRegistered method Null safety

  1. @protected
void ensureFrameCallbacksRegistered ()
@protected

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

Implementation

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