waitFrame method
Waits for the runtime's next frame and says what it will be: the runtime's pace, so it completes when the runtime is ready for the frame to be drawn.
Implementation
@override
Future<XrFrame> waitFrame() async {
if (!_state.draws) {
throw StateError('the session is ${_state.name}: no frames to wait for');
}
return frameAt(this, _next++);
}