showMessage method
Implementation
void showMessage(
BuildContext context,
String message, {
int durationInSeconds = 4,
}) {
Timer(const Duration(milliseconds: 100), () {
messenger(context).hideCurrentSnackBar();
messenger(context).showSnackBar(
SnackBar(
duration: Duration(seconds: durationInSeconds),
content: Text(message),
),
);
});
}