onDrawFrame property Null safety

  1. @override
VoidCallback? onDrawFrame
override

A callback that is invoked for each frame after onBeginFrame has completed and after the microtask queue has been drained.

This can be used to implement a second phase of frame rendering that happens after any deferred work queued by the onBeginFrame phase.

Implementation

@override
ui.VoidCallback? get onDrawFrame => _platformDispatcher.onDrawFrame;
  1. @override
void onDrawFrame=(VoidCallback? callback)
override

Implementation

@override
set onDrawFrame(ui.VoidCallback? callback) {
  _platformDispatcher.onDrawFrame = callback;
}