CustomSnackBar.error constructor

const CustomSnackBar.error({
  1. Key? key,
  2. required String message,
  3. Widget icon = const Icon(Icons.error_outline, color: const Color(0x15000000), size: 120),
  4. TextStyle textStyle = const TextStyle(fontWeight: FontWeight.w600, fontSize: 16, color: Colors.white),
  5. int iconRotationAngle = 32,
  6. 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),
});