thenThrowAsync method
Stub to throw error asynchronously.
Implementation
void thenThrowAsync(Object error) => thenAnswer((_) => Future.error(error));
Stub to throw error asynchronously.
void thenThrowAsync(Object error) => thenAnswer((_) => Future.error(error));