thenReturnAsync method

void thenReturnAsync(
  1. T value
)

Stub to return value asynchronously.

Implementation

void thenReturnAsync(T value) => thenAnswer((_) async => value);