scheduleFrame method
Schedules a frame with the provided frameCallback.
Implementations should schedule frameCallback to run asynchronously,
so that updates made in the same task are batched into a single frame.
Implementation
@override
@protected
void scheduleFrame(VoidCallback frameCallback) {
// We want the build to trigger asynchronously (to batch updates), but as soon as possible.
// Microtasks are run before other tasks or events.
scheduleMicrotask(frameCallback);
}