showToast static method

dynamic showToast(
  1. dynamic text,
  2. BuildContext context, {
  3. dynamic toastDuration,
  4. dynamic toastPosition,
  5. dynamic backgroundColor = const Color(0xAA000000),
  6. dynamic textStyle = const TextStyle(fontSize: 15, color: Colors.white),
  7. dynamic toastBorderRadius = 20.0,
  8. dynamic border,
  9. 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);
}