thenAnswerWithProvidedCallback method
void
thenAnswerWithProvidedCallback()
Implementation
void thenAnswerWithProvidedCallback() => thenAnswer((i) {
final callback = i.positionalArguments.singleOrNull;
// ignore: no-empty-block, it needs to be empty, prefer-typedefs-for-callbacks, private API
return Stream.fromIterable(<T>[]).listen(callback != null ? callback as void Function(T value) : (_) {});
});