errorMessage method
dynamic
errorMessage({
- dynamic context,
- dynamic message,
Implementation
errorMessage({context, message}) {
return ScaffoldMessenger.of(context).showSnackBar(SnackBar(
backgroundColor: Colors.red.shade400,
behavior: SnackBarBehavior.floating,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(12))),
elevation: 6.0,
content: Text(
"${message}",
style: TextStyle(
fontFamily: 'Nunito',
color: Colors.white,
fontWeight: FontWeight.w500,
fontSize: 16),
),
));
}