showSnackBar method
Used to show message
Implementation
showSnackBar({String msg = "Permission Denied."}) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(msg),
duration: const Duration(milliseconds: 1000),
));
}
Used to show message
showSnackBar({String msg = "Permission Denied."}) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(msg),
duration: const Duration(milliseconds: 1000),
));
}