SmartConfigToast constructor

SmartConfigToast({
  1. Alignment alignment = Alignment.bottomCenter,
  2. SmartAnimationType animationType = SmartAnimationType.fade,
  3. Duration animationTime = const Duration(milliseconds: 200),
  4. bool useAnimation = true,
  5. bool usePenetrate = true,
  6. Color maskColor = const Color.fromRGBO(0, 0, 0, 0.46),
  7. Widget? maskWidget,
  8. bool clickMaskDismiss = false,
  9. bool debounce = false,
  10. Duration debounceTime = const Duration(milliseconds: 300),
  11. SmartToastType displayType = SmartToastType.normal,
  12. bool consumeEvent = false,
  13. Duration displayTime = const Duration(milliseconds: 2000),
  14. Duration intervalTime = const Duration(milliseconds: 100),
  15. SmartAwaitOverType awaitOverType = SmartAwaitOverType.dialogDismiss,
  16. SmartMaskTriggerType maskTriggerType = SmartMaskTriggerType.up,
  17. List<SmartNonAnimationType> nonAnimationTypes = const [],
  18. bool isExist = false,
})

Implementation

SmartConfigToast({
  this.alignment = Alignment.bottomCenter,
  this.animationType = SmartAnimationType.fade,
  this.animationTime = const Duration(milliseconds: 200),
  this.useAnimation = true,
  this.usePenetrate = true,
  this.maskColor = const Color.fromRGBO(0, 0, 0, 0.46),
  this.maskWidget,
  this.clickMaskDismiss = false,
  this.debounce = false,
  this.debounceTime = const Duration(milliseconds: 300),
  this.displayType = SmartToastType.normal,
  this.consumeEvent = false,
  this.displayTime = const Duration(milliseconds: 2000),
  this.intervalTime = const Duration(milliseconds: 100),
  this.awaitOverType = SmartAwaitOverType.dialogDismiss,
  this.maskTriggerType = SmartMaskTriggerType.up,
  this.nonAnimationTypes = const [],
  this.isExist = false,
});