CloseAlertStyle constructor

CloseAlertStyle({
  1. required String title,
  2. required String message,
  3. required String positiveButtonText,
  4. required String negativeButtonText,
  5. TextStyle titleTextStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
  6. TextStyle messageTextStyle = const TextStyle(fontSize: 16),
  7. TextStyle positiveButtonTextStyle = const TextStyle(fontSize: 16, color: Colors.blue),
  8. TextStyle negativeButtonTextStyle = const TextStyle(fontSize: 16, color: Colors.red),
  9. BoxDecoration containerDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10))),
})

Close alert style

Implementation

CloseAlertStyle({
  required this.title,
  required this.message,
  required this.positiveButtonText,
  required this.negativeButtonText,
  this.titleTextStyle = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.bold,
  ),
  this.messageTextStyle = const TextStyle(
    fontSize: 16,
  ),
  this.positiveButtonTextStyle = const TextStyle(
    fontSize: 16,
    color: Colors.blue,
  ),
  this.negativeButtonTextStyle = const TextStyle(
    fontSize: 16,
    color: Colors.red,
  ),
  this.containerDecoration = const BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.all(Radius.circular(10)),
  ),
});