ToastMessage<T> constructor
ToastMessage<T> ({
- required Widget child,
- Duration duration = const Duration(seconds: 3),
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- AlignmentGeometry? alignment,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Color? iconColor,
- 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,
});