CustomMessage constructor
const
CustomMessage({
- Key? key,
- String title = '',
- String? subtitle,
- String? message,
- Icon? icon,
- TextAlign? textAlign = TextAlign.center,
- Color? backgroundColor,
- Color? textColor,
- BoxBorder? border,
- BorderRadius? borderRadius,
- EdgeInsets? padding = const EdgeInsets.all(16),
- EdgeInsets? margin = const EdgeInsets.all(16),
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? messageStyle,
- bool isCard = false,
- double? elevation = 8,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- 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
});