CustomSnackBar.error constructor
const
CustomSnackBar.error({
- Key? key,
- required String message,
- Widget icon = const Icon(Icons.error_outline, color: const Color(0x15000000), size: 120),
- TextStyle textStyle = const TextStyle(fontWeight: FontWeight.w600, fontSize: 16, color: Colors.white),
- int iconRotationAngle = 32,
- Color backgroundColor = const Color(0xffff5252),
Implementation
const CustomSnackBar.error({
Key? key,
required this.message,
this.icon = const Icon(
Icons.error_outline,
color: const Color(0x15000000),
size: 120,
),
this.textStyle = const TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
color: Colors.white,
),
this.iconRotationAngle = 32,
this.backgroundColor = const Color(0xffff5252),
});