showGrockSnackBarWithIcon method
showSnackBar
method
Implementation
void showGrockSnackBarWithIcon(
String message, {
Duration? duration,
required IconData icon,
}) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Row(
children: [
Icon(icon),
SizedBox(width: 10),
Text(message),
],
),
duration: duration ?? const Duration(seconds: 2),
),
);
}