ToastMeta constructor
ToastMeta({
- Widget? icon,
- String title = '',
- String style = '',
- String description = '',
- Color? color,
- VoidCallback? action,
- VoidCallback? dismiss,
- VoidCallback? onDismiss,
- VoidCallback? onShow,
- Duration duration = const Duration(seconds: 5),
- ToastNotificationPosition position = ToastNotificationPosition.top,
- Map<
String, dynamic> ? metaData, - ToastAnimation? animation,
- ToastAnimation? reverseAnimation,
- bool? dismissOtherToast,
- TextDirection? textDirection,
- Alignment? alignment,
- Axis? axis,
- Offset? startOffset,
- Offset? endOffset,
- Offset? reverseStartOffset,
- Offset? reverseEndOffset,
- bool? isHideKeyboard,
- bool? isIgnoring,
- CustomAnimationBuilder? animationBuilder,
- CustomAnimationBuilder? reverseAnimBuilder,
- 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,
});