CustomMessage constructor

const CustomMessage({
  1. Key? key,
  2. String title = '',
  3. String? subtitle,
  4. String? message,
  5. Icon? icon,
  6. TextAlign? textAlign = TextAlign.center,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. BoxBorder? border,
  10. BorderRadius? borderRadius,
  11. EdgeInsets? padding = const EdgeInsets.all(16),
  12. EdgeInsets? margin = const EdgeInsets.all(16),
  13. TextStyle? titleStyle,
  14. TextStyle? subtitleStyle,
  15. TextStyle? messageStyle,
  16. bool isCard = false,
  17. double? elevation = 8,
  18. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  19. Axis direction = Axis.vertical,
})

Implementation

const CustomMessage({
  super.key,
  this.title = '',
  this.subtitle,
  this.message,
  this.icon,
  this.textAlign = TextAlign.center,
  this.backgroundColor,
  this.textColor,
  this.border,
  this.borderRadius,
  this.padding = const EdgeInsets.all(16),
  this.margin = const EdgeInsets.all(16),
  this.titleStyle,
  this.subtitleStyle,
  this.messageStyle,
  this.isCard = false,
  this.elevation = 8,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.direction = Axis.vertical
});