dart test matcher expecting a field value code example
Example: dart test matcher expecting a field value
var hasCorrectArea = predicate((rect) => rect.area == rect.length * rect.width,
"has correct area");
expect(myRect, hasCorrectArea);
var hasCorrectArea = predicate((rect) => rect.area == rect.length * rect.width,
"has correct area");
expect(myRect, hasCorrectArea);