ToastThemeData constructor

const ToastThemeData({
  1. TextStyle? textStyle,
  2. Color? backgroundColor,
  3. Color? foregroundColor,
  4. EdgeInsetsGeometry? padding,
  5. BorderRadius? borderRadius,
  6. VisualDensity? visualDensity,
  7. TextAlign? textAlign,
  8. Color? maskColor,
  9. double? verticalGap,
  10. double? indicatorSize,
  11. double? indicatorWidth,
  12. Widget? indicator,
  13. Widget? successIcon,
  14. Widget? errorIcon,
  15. Widget? informationIcon,
  16. ToastPosition? position,
  17. Duration? animationDuration,
  18. Duration? displayDuration,
  19. bool? dismissOnTap,
  20. bool? isInteractive,
  21. ToastAnimationBuilder? animationBuilder,
})

创建可用于 ThemeData.extension<ToastThemeData>() 的主题。

Implementation

const ToastThemeData({
  this.textStyle,
  this.backgroundColor,
  this.foregroundColor,
  this.padding,
  this.borderRadius,
  this.visualDensity,
  this.textAlign,
  this.maskColor,
  this.verticalGap,
  this.indicatorSize,
  this.indicatorWidth,
  this.indicator,
  this.successIcon,
  this.errorIcon,
  this.informationIcon,
  this.position,
  this.animationDuration,
  this.displayDuration,
  this.dismissOnTap,
  this.isInteractive,
  this.animationBuilder,
});