showToast<T> method
Future<T?>
showToast<T>(
- 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,
- bool queue = true,
Emit a message for the specified duration.
Implementation
Future<T?> showToast<T>(
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,
bool queue = true,
}) {
return Toast.show(
this,
child,
duration: duration,
backgroundColor: backgroundColor,
elevation: elevation,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
shape: shape,
clipBehavior: clipBehavior,
alignment: alignment,
margin: margin,
padding: padding,
iconColor: iconColor,
textStyle: textStyle,
queue: queue,
);
}