removeCurrentSnackBar

mySnackBar

);

Timeline

Landed in version: 1.23.0-13.0.pre
In stable release: 2.0.0

References

API documentation:

Scaffold

ScaffoldMessenger

SnackBar

MaterialApp

Relevant issues:

Issue #57218

Issue #62921

Relevant PRs:

ScaffoldMessenger

ScaffoldMessenger Migration