BoxIconTitle constructor

const BoxIconTitle({
  1. Key? key,
  2. IconData icon = Icons.document_scanner,
  3. String text = "Title",
  4. required VoidCallback? onPressed,
  5. required double width,
  6. Color iconColor = Colors.white,
  7. Color? backgroundColor,
  8. Color textColor = Colors.black,
  9. bool isEnabled = true,
  10. double borderRadius = 15.0,
})

Implementation

const BoxIconTitle({
  super.key,
  this.icon = Icons.document_scanner,
  this.text = "Title",
  required this.onPressed,
  required this.width,
  this.iconColor = Colors.white,
  this.backgroundColor,
  this.textColor = Colors.black,
  this.isEnabled = true,
  this.borderRadius = 15.0, // Add borderRadius property
});