testOnlySimulateCloseDialogOrSheet<TResult> method

void testOnlySimulateCloseDialogOrSheet<TResult>(
  1. AFScreenID screenId,
  2. TResult result
)

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);
}