DDSToast constructor
const
DDSToast({
- Key? key,
- Color? innerBackgroundColor,
- Color? outerBackgroundColor = Colors.pinkAccent,
- Widget content = const Text('Toast Notification', style: TextStyle(color: Colors.black, fontSize: 12, fontFamily: 'Poppins', fontWeight: FontWeight.w400)),
- EdgeInsetsGeometry? padding,
- double? width = 349.0,
- EdgeInsetsGeometry? margin,
- double borderRadius = 8.0,
- Duration duration = const Duration(seconds: 3),
- ToastPosition position = ToastPosition.bottom,
- Icon? icon,
- TextAlign textAlign = TextAlign.center,
- double elevation = 6.0,
- VoidCallback? onDismissed,
- BackdropFilter? backdropFilter,
- Color? innerBoxShadowColor,
- Color? outerBoxShadowColor,
- List<
BoxShadow> ? innerBoxShadow, - List<
BoxShadow> ? outerBoxShadow, - double? innerBoxHeight = 48.0,
- double? outerBoxHeight = 48.0,
Implementation
const DDSToast(
{Key? key,
this.innerBackgroundColor,
this.outerBackgroundColor = Colors.pinkAccent,
this.content = const Text(
'Toast Notification',
style: TextStyle(
color: Colors.black,
fontSize: 12,
fontFamily: 'Poppins',
fontWeight: FontWeight.w400,
),
),
this.padding,
this.width = 349.0,
// this.height = 48.0,
this.margin,
this.borderRadius = 8.0,
this.duration = const Duration(seconds: 3),
this.position = ToastPosition.bottom,
this.icon,
this.textAlign = TextAlign.center,
this.elevation = 6.0,
this.onDismissed,
this.backdropFilter,
this.innerBoxShadowColor,
this.outerBoxShadowColor,
this.innerBoxShadow,
this.outerBoxShadow,
this.innerBoxHeight = 48.0,
this.outerBoxHeight = 48.0})
: super(key: key);