testOnlySimulateCloseDialogOrSheet<TResult> method
Implementation
void testOnlySimulateCloseDialogOrSheet<TResult>(AFScreenID screenId, TResult result) {
final completer = testOnlyDialogCompleters[screenId];
if(completer == null) {
throw AFException("No dialog completer for $screenId, did you try to close a dialog you didn't open in a state test?");
}
completer(result);
}