scaffold property

ScaffoldState scaffold

Returns the nearest ScaffoldState instance for the current context.

Example usage:

context.scaffold.showSnackBar(SnackBar(content: Text('Hello')));

Implementation

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