constraints property Null safety

  1. @override
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;