ToastOptions.extended constructor

const ToastOptions.extended({
  1. Color? color = const Color(0xFFFFFFFF),
  2. GestureTapCallback? onToastTap,
  3. Duration duration = const Duration(milliseconds: 1500),
  4. FlAnimationStyle? animationStyle,
  5. Duration? animationDuration = const Duration(milliseconds: 300),
  6. Axis? direction = Axis.vertical,
  7. ToastBuilder? builder,
  8. EdgeInsetsGeometry? padding = const EdgeInsets.all(10),
  9. BoxConstraints? constraints,
  10. Color? backgroundColor,
  11. Color? foregroundColor = const Color(0xFF000000),
  12. AlignmentGeometry? alignment = Alignment.center,
  13. GestureTapCallback? onModalTap,
  14. double gaussian = 0,
  15. bool? ignoring,
  16. bool? absorbing,
  17. double? elevation,
  18. Color? shadowColor,
  19. TextStyle? textStyle = const TextStyle(color: Color(0xFFFFFFFF)),
  20. BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(4)),
  21. ShapeBorder? shape,
  22. bool? borderOnForeground,
  23. bool safeLTRB = true,
  24. bool resizeToAvoidBottomInset = true,
  25. Curve insetAnimationCurve = Curves.decelerate,
  26. Duration insetAnimationDuration = const Duration(milliseconds: 100),
})

Implementation

const ToastOptions.extended({
  this.color = const Color(0xFFFFFFFF),
  this.onToastTap,
  this.duration = const Duration(milliseconds: 1500),
  this.animationStyle,
  this.animationDuration = const Duration(milliseconds: 300),
  this.direction = Axis.vertical,
  this.builder,
  this.padding = const EdgeInsets.all(10),
  super.constraints,
  super.backgroundColor,
  super.foregroundColor = const Color(0xFF000000),
  super.alignment = Alignment.center,
  super.onModalTap,
  super.gaussian,
  super.ignoring,
  super.absorbing,
  super.elevation,
  super.shadowColor,
  super.textStyle = const TextStyle(color: Color(0xFFFFFFFF)),
  super.borderRadius = const BorderRadius.all(Radius.circular(4)),
  super.shape,
  super.borderOnForeground,
  super.safeLTRB,
  super.resizeToAvoidBottomInset,
  super.insetAnimationCurve,
  super.insetAnimationDuration,
});