toBeLoaded method
To be used for tests that needs to evaluate the game after it has been loaded by the game widget.
Implementation
@visibleForTesting
FutureOr<void> toBeLoaded() {
assert(
_debugOnLoadStarted,
'Make sure the game has passed to a mounted '
'GameWidget before calling toBeLoaded',
);
return _onLoadFuture;
}