decodedMatches function
Decodes the value using encoding and matches it against expected.
Implementation
TypeMatcher<List<int>> decodedMatches(dynamic expected, {Encoding? encoding}) {
encoding ??= utf8;
return const TypeMatcher<List<int>>().having(
encoding.decode,
'${encoding.name} decoded bytes',
expected,
);
}