DDSToast constructor

const DDSToast({
  1. Key? key,
  2. Color? innerBackgroundColor,
  3. Color? outerBackgroundColor = Colors.pinkAccent,
  4. Widget content = const Text('Toast Notification', style: TextStyle(color: Colors.black, fontSize: 12, fontFamily: 'Poppins', fontWeight: FontWeight.w400)),
  5. EdgeInsetsGeometry? padding,
  6. double? width = 349.0,
  7. EdgeInsetsGeometry? margin,
  8. double borderRadius = 8.0,
  9. Duration duration = const Duration(seconds: 3),
  10. ToastPosition position = ToastPosition.bottom,
  11. Icon? icon,
  12. TextAlign textAlign = TextAlign.center,
  13. double elevation = 6.0,
  14. VoidCallback? onDismissed,
  15. BackdropFilter? backdropFilter,
  16. Color? innerBoxShadowColor,
  17. Color? outerBoxShadowColor,
  18. List<BoxShadow>? innerBoxShadow,
  19. List<BoxShadow>? outerBoxShadow,
  20. double? innerBoxHeight = 48.0,
  21. 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);