Provide details when reporting invalid constraints (#3281)

This also shrinks the width of the error messages a bit because now that
we use 'package:' URLs the stacks are a bit narrower.
This commit is contained in:
Ian Hickson
2016-04-12 15:42:00 -07:00
parent 3525aa1b0a
commit ecf1cce82c
7 changed files with 84 additions and 33 deletions

View File

@@ -43,7 +43,10 @@ class SectorConstraints extends Constraints {
bool get isNormalized => minDeltaRadius <= maxDeltaRadius && minDeltaTheta <= maxDeltaTheta;
@override
bool debugAssertIsValid({ bool isAppliedConstraint: false }) {
bool debugAssertIsValid({
bool isAppliedConstraint: false,
InformationCollector informationCollector
}) {
assert(isNormalized);
return isNormalized;
}