frames method

Future<void> frames([
  1. int count = 1
])

Pumps count frames, a 60th of a second each: the world runs as on a 60 Hz display, so once a frame at its default targetFrameRate of 60, every other frame at 30, and 10 times a second while a page covers it.

Implementation

Future<void> frames([int count = 1]) async {
  for (var i = 0; i < count; i++) {
    await pump(const Duration(microseconds: 16667));
  }
}