showErrorToast function
Displays an error toast with a given message.
Returns a Future<bool?> indicating whether the toast was successfully shown.
Implementation
Future<bool?> showErrorToast(String message) {
return Fluttertoast.showToast(
msg: message,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.TOP,
timeInSecForIosWeb: 1,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0,
);
}