scheduleFrame method

  1. @Deprecated('Use WidgetTester.platformDispatcher.scheduleFrame() instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
  2. @override
void scheduleFrame()
override

Requests that, at the next appropriate opportunity, the onBeginFrame and onDrawFrame callbacks be invoked.

Calling this function forwards the call to the same function on the PlatformDispatcher singleton, so instead of calling it here, you should consider calling it on WidgetsBinding.instance.platformDispatcher instead (or, when WidgetsBinding isn't available, on PlatformDispatcher.instance). The reason this function forwards to the PlatformDispatcher is to provide convenience for applications that only use a single main window.

See also:

  • SchedulerBinding, the Flutter framework class which manages the scheduling of frames.

Implementation

@Deprecated(
  'Use WidgetTester.platformDispatcher.scheduleFrame() instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
@override
void scheduleFrame() {
  platformDispatcher.scheduleFrame();
}