error static method
Implementation
static void error(String message) {
BotToast.showNotification(
backgroundColor: errorColor,
borderRadius: borderRadiusAlert,
margin: const EdgeInsets.symmetric(horizontal: 15),
title: (_) => Text(message, style: baseText.copyWith(color: titleColor)),
leading:
(_) => Container(
height: 20,
width: 20,
decoration: const BoxDecoration(
color: Color(0xffDB2916),
shape: BoxShape.circle,
),
child: const Icon(Icons.close, color: whiteColor, size: 15),
),
duration: const Duration(seconds: 5),
align: const Alignment(0, 0.95),
);
}