Dart Test Matcher esperando um valor de campo
var hasCorrectArea = predicate((rect) => rect.area == rect.length * rect.width,
"has correct area");
expect(myRect, hasCorrectArea);
Naughty Nightingale