Alert.success constructor
const
Alert.success({
- Key? key,
- bool visible = true,
- ValueChanged<
bool> ? onChanged, - AlertTransitionBuilder? transitionBuilder = AlertTransition.crossFade,
- AlertLayoutBuilder layoutBuilder = AlertLayout.defaults,
- Widget? title,
- Widget? message,
- Widget? icon = AlertIcons.success,
- Widget? action,
- AlertVariant? variant,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? spacing,
- double? elevation,
- BorderRadius? borderRadius,
- double? iconSize,
- AlertStyle? style,
- Curve? curve,
- Duration? duration,
Implementation
const Alert.success({
super.key,
this.visible = true,
this.onChanged,
this.transitionBuilder = AlertTransition.crossFade,
this.layoutBuilder = AlertLayout.defaults,
this.title,
this.message,
this.icon = AlertIcons.success,
this.action,
this.variant,
this.margin,
this.padding,
this.spacing,
this.elevation,
this.borderRadius,
this.iconSize,
this.style,
this.curve,
this.duration,
}) : severity = AlertSeverity.success;