ToastMessage<T> constructor

ToastMessage<T>({
  1. required Widget child,
  2. Duration duration = const Duration(seconds: 3),
  3. Color? backgroundColor,
  4. double? elevation,
  5. Color? shadowColor,
  6. Color? surfaceTintColor,
  7. ShapeBorder? shape,
  8. Clip clipBehavior = Clip.none,
  9. AlignmentGeometry? alignment,
  10. EdgeInsets? margin,
  11. EdgeInsets? padding,
  12. Color? iconColor,
  13. TextStyle? textStyle,
})

Implementation

ToastMessage({
  required this.child,
  this.duration = const Duration(seconds: 3),
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.clipBehavior = Clip.none,
  this.alignment,
  this.margin,
  this.padding,
  this.iconColor,
  this.textStyle,
});