OKToast constructor

const OKToast({
  1. Key? key,
  2. required Widget child,
  3. TextStyle? textStyle,
  4. double radius = 10.0,
  5. ToastPosition position = ToastPosition.center,
  6. TextDirection textDirection = TextDirection.ltr,
  7. bool dismissOtherOnShow = false,
  8. bool movingOnWindowChange = true,
  9. Color? backgroundColor,
  10. EdgeInsets? textPadding,
  11. TextAlign? textAlign,
  12. bool handleTouch = false,
  13. OKToastAnimationBuilder? animationBuilder,
  14. Duration animationDuration = _defaultAnimDuration,
  15. Curve? animationCurve,
  16. Duration? duration,
})

Implementation

const OKToast({
  super.key,
  required this.child,
  this.textStyle,
  this.radius = 10.0,
  this.position = ToastPosition.center,
  this.textDirection = TextDirection.ltr,
  this.dismissOtherOnShow = false,
  this.movingOnWindowChange = true,
  Color? backgroundColor,
  this.textPadding,
  this.textAlign,
  this.handleTouch = false,
  this.animationBuilder,
  this.animationDuration = _defaultAnimDuration,
  this.animationCurve,
  this.duration,
}) : backgroundColor = backgroundColor ?? _defaultBackgroundColor;