CustomSnackBar constructor
CustomSnackBar()
Create a SnackBar directly from ScaffoldMessenger.
As earlier way of showing SnackBar from ScaffoldState
(or scaffoldKey
) is deprecated, you will have to wrap your
Scaffolds with a ScaffoldMessenger to show a SnackBar.
For more information, see the documentation of ScaffoldMessenger.
Implementation
CustomSnackBar();