frameDidDraw method
Called immediately after calling SchedulerBinding.handleDrawFrame.
Implementation
@override
@mustCallSuper
void frameDidDraw() {
endMeasureFrame();
profile.addDataPoint('drawFrameDuration', _drawFrameStopwatch.elapsed,
reported: true);
if (shouldContinue()) {
PlatformDispatcher.instance.scheduleFrame();
} else {
for (final VoidCallback fn in _didStopCallbacks) {
fn();
}
_runCompleter.complete();
}
}