String ErrorFormatter(actual, Matcher matcher, String reason, Map matchState, bool verbose)

The type used for functions that can be used to build up error reports upon failures in expect.

Source

typedef String ErrorFormatter(
    actual, Matcher matcher, String reason, Map matchState, bool verbose);