thenAnswerWith method

void thenAnswerWith(
  1. T value
)

The function will be called and completed with value.

Implementation

void thenAnswerWith(T value) => thenAnswer((_) => Future<T>.value(value));