testOnlyVerifyActiveScreen method
void
testOnlyVerifyActiveScreen(
- AFScreenID? screenId
)
Implementation
void testOnlyVerifyActiveScreen(AFScreenID? screenId) {
if(screenId == null) {
return;
}
final state = internalOnlyActiveStore.state;
final routeState = state.public.route;
if(!routeState.isActiveScreen(screenId)) {
throw AFException("Screen $screenId is not the currently active screen in route ${routeState.toString()}");
}
var info = AFibF.g.internalOnlyScreens[screenId];
if(info?.element == null) {
throw AFException("Screen $screenId is active, but has not rendered (as there is no screen element), this might be an intenral problem in Afib.");
}
}