CustomToast constructor

const CustomToast({
  1. Key? key,
  2. bool isInFront = false,
  3. required VoidCallback onTap,
  4. VoidCallback? onClose,
  5. String? message,
  6. TextStyle? messageStyle,
  7. Widget? leading,
  8. Widget? child,
  9. bool? isClosable,
  10. Color? backgroundColor,
  11. Color? shadowColor,
  12. required AnimationController? controller,
  13. Curve? curve,
})

Implementation

const CustomToast({
  super.key,
  this.isInFront = false,
  required this.onTap,
  this.onClose,
  this.message,
  this.messageStyle,
  this.leading,
  this.child,
  this.isClosable,
  this.backgroundColor,
  this.shadowColor,
  required this.controller,
  this.curve,
}) : assert((message != null || message != '') || child != null);