OKToast constructor
const
OKToast({
- Key? key,
- required Widget child,
- TextStyle? textStyle,
- double radius = 10.0,
- ToastPosition position = ToastPosition.center,
- TextDirection textDirection = TextDirection.ltr,
- bool dismissOtherOnShow = false,
- bool movingOnWindowChange = true,
- Color? backgroundColor,
- EdgeInsets? textPadding,
- TextAlign? textAlign,
- bool handleTouch = false,
- OKToastAnimationBuilder? animationBuilder,
- Duration animationDuration = _defaultAnimDuration,
- Curve? animationCurve,
- 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;