constraints property
override
The layout constraints most recently supplied by the parent.
If layout has not yet happened, accessing this getter will throw a StateError exception.
Implementation
@override
BoxConstraints get constraints {
if (!hasConfiguration) {
throw StateError('Constraints are not available because RenderView has not been given a configuration yet.');
}
return configuration.logicalConstraints;
}