showToast static method
dynamic
showToast(
- dynamic text,
- BuildContext context, {
- dynamic toastDuration,
- dynamic toastPosition,
- dynamic backgroundColor = const Color(0xAA000000),
- dynamic textStyle = const TextStyle(fontSize: 15, color: Colors.white),
- dynamic toastBorderRadius = 20.0,
- dynamic border,
- dynamic trailing,
Implementation
static showToast(
text,
BuildContext context, {
toastDuration,
toastPosition,
backgroundColor = const Color(0xAA000000),
textStyle = const TextStyle(fontSize: 15, color: Colors.white),
toastBorderRadius = 20.0,
border,
trailing,
}) {
assert(text != null);
ToastView.dismiss();
ToastView.createView(text, context, toastDuration, toastPosition,
backgroundColor, textStyle, toastBorderRadius, border, trailing);
}