ToastMeta constructor

ToastMeta({
  1. Widget? icon,
  2. String title = '',
  3. String style = '',
  4. String description = '',
  5. Color? color,
  6. VoidCallback? action,
  7. VoidCallback? dismiss,
  8. VoidCallback? onDismiss,
  9. VoidCallback? onShow,
  10. Duration duration = const Duration(seconds: 5),
  11. ToastNotificationPosition position = ToastNotificationPosition.top,
  12. Map<String, dynamic>? metaData,
  13. ToastAnimation? animation,
  14. ToastAnimation? reverseAnimation,
  15. bool? dismissOtherToast,
  16. TextDirection? textDirection,
  17. Alignment? alignment,
  18. Axis? axis,
  19. Offset? startOffset,
  20. Offset? endOffset,
  21. Offset? reverseStartOffset,
  22. Offset? reverseEndOffset,
  23. bool? isHideKeyboard,
  24. bool? isIgnoring,
  25. CustomAnimationBuilder? animationBuilder,
  26. CustomAnimationBuilder? reverseAnimBuilder,
  27. ToastOnInitStateCallback? onInitState,
})

Implementation

ToastMeta({
  this.icon,
  this.title = '',
  this.style = '',
  this.description = '',
  this.color,
  this.action,
  this.dismiss,
  this.onDismiss,
  this.onShow,
  this.duration = const Duration(seconds: 5),
  this.position = ToastNotificationPosition.top,
  this.metaData,
  this.animation,
  this.reverseAnimation,
  this.dismissOtherToast,
  this.textDirection,
  this.alignment,
  this.axis,
  this.startOffset,
  this.endOffset,
  this.reverseStartOffset,
  this.reverseEndOffset,
  this.isHideKeyboard,
  this.isIgnoring,
  this.animationBuilder,
  this.reverseAnimBuilder,
  this.onInitState,
});