show method
Implementation
void show(BuildContext context, String message,
{required Duration duration}) {
final snackBar = SnackBar(
content: Text(message),
duration: duration, // Default to 2 seconds
behavior: SnackBarBehavior.floating,
);
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}