CustomToast constructor
const
CustomToast({
- Key? key,
- bool isInFront = false,
- required VoidCallback onTap,
- VoidCallback? onClose,
- String? message,
- TextStyle? messageStyle,
- Widget? leading,
- Widget? child,
- bool? isClosable,
- Color? backgroundColor,
- Color? shadowColor,
- required AnimationController? controller,
- 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);