CustomToast.delete constructor

CustomToast.delete({
  1. Key? key,
  2. required String description,
  3. String title = '',
  4. TextStyle descriptionStyle = const TextStyle(color: Colors.black),
  5. TextStyle titleStyle = const TextStyle(color: Colors.black),
  6. ICON_TYPE? iconType = ICON_TYPE.materialDesign,
  7. double width = defaultToastWidth,
  8. double height = motionToastHeight,
  9. double iconSize = defaultIconSize,
  10. bool enableAnimation = true,
  11. ORIENTATION layoutOrientation = ORIENTATION.ltr,
  12. ANIMATION animationType = ANIMATION.fromBottom,
  13. Duration animationDuration = const Duration(milliseconds: 1500),
  14. Duration toastDuration = const Duration(seconds: 3),
  15. Curve animationCurve = Curves.ease,
  16. MOTION_TOAST_POSITION position = MOTION_TOAST_POSITION.bottom,
  17. double borderRadius = defaultRadius,
  18. Function? onClose,
  19. bool dismissable = false,
})

Render delete toast color is set to deleteColor icon is set to MOTION_TOAST_ICONS_MD[MOTION_TOAST_TYPE.DELETE] or MOTION_TOAST_ICONS_CUPERTINO[MOTION_TOAST_TYPE.DELETE] description is required

the text style by default: TextStyle(color: Colors.black)

Implementation

CustomToast.delete({
  Key? key,
  required this.description,
  this.title = '',
  this.descriptionStyle = const TextStyle(color: Colors.black),
  this.titleStyle = const TextStyle(color: Colors.black),
  this.iconType = ICON_TYPE.materialDesign,
  this.width = defaultToastWidth,
  this.height = motionToastHeight,
  this.iconSize = defaultIconSize,
  this.enableAnimation = true,
  this.layoutOrientation = ORIENTATION.ltr,
  this.animationType = ANIMATION.fromBottom,
  this.animationDuration = const Duration(milliseconds: 1500),
  this.toastDuration = const Duration(seconds: 3),
  this.animationCurve = Curves.ease,
  this.position = MOTION_TOAST_POSITION.bottom,
  this.borderRadius = defaultRadius,
  this.onClose,
  this.dismissable = false,
}) : super(key: key) {
  motionToastType = MOTION_TOAST_TYPE.delete;
  _assertValidValues();
  _initializeParameters();
}