toPrettyPrintedString method
Prints a human-readable list of all the registered fake responses.
Implementation
String toPrettyPrintedString() {
if (_matchers.isEmpty) {
return 'No definitions.';
}
// the reversed here is because we insert new matchers at the front of the
// list, but we want to print them in the order they were added.
return _matchers.reversed.map((def) => def.description).join('\n');
}