scheduleFrame method

  1. @override
void scheduleFrame(
  1. VoidCallback frameCallback
)
inherited

Schedules a frame with the provided frameCallback

Implementation

@override
void scheduleFrame(VoidCallback frameCallback) {
  // This seems to give the best results over futures and microtasks
  // Needs to be inspected in more detail
  window.requestAnimationFrame((highResTime) {
    frameCallback();
  });
}