ToastWidget constructor

ToastWidget({
  1. required String message,
  2. Duration? duration,
  3. required Alignment alignment,
  4. TextStyle? textStyle,
  5. BoxDecoration? background,
  6. EdgeInsets? padding,
  7. Offset? offsetAnimationStart,
  8. Key? key,
})

Implementation

ToastWidget({
  required this.message,
  this.duration,
  required this.alignment,
  this.textStyle,
  this.background,
  this.padding,
  this.offsetAnimationStart,
  Key? key,
}) : super(key: key);