Stubs the response returned by invoke or invokeAs for methodName.
methodName
void whenInvoke(String methodName, dynamic result) { _mockResults[methodName] = result; }