constraints property Null safety

SliverConstraints constraints
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
SliverConstraints get constraints => super.constraints as SliverConstraints;