normaliseConstraints method
void
normaliseConstraints()
Implementation
void normaliseConstraints() {
double constraintsMinX = constraintsMin.dx == double.negativeInfinity ? double.negativeInfinity : boundWidth * constraintsMin.dx;
double constraintsMinY = constraintsMin.dy == double.negativeInfinity ? double.negativeInfinity : boundHeight * constraintsMin.dy;
double constraintsMaxX = constraintsMax.dx == double.infinity ? double.infinity : boundWidth * constraintsMax.dx;
double constraintsMaxY = constraintsMax.dy == double.infinity ? double.infinity : boundHeight * constraintsMax.dy;
constraintsMin = Offset(constraintsMinX, constraintsMinY);
constraintsMax = Offset(constraintsMaxX, constraintsMaxY);
}