scaffold property

ScaffoldState get scaffold

Returns the closest instance of ScaffoldState in the widget tree, which can be use to get information about that scaffold.

If there is no Scaffold in scope, then this will throw an exception.

Implementation

ScaffoldState get scaffold => Scaffold.of(this);