show static method

dynamic show(
  1. String msg, {
  2. dynamic duration = 2000,
  3. TextStyle? textStyle,
  4. Color? backgroundColor,
  5. bool dismissOtherToast = true,
})

Implementation

static show(String msg,
    {duration = 2000,
    TextStyle? textStyle,
    Color? backgroundColor,
    bool dismissOtherToast = true}) {
  showToast(
    msg,
    textStyle: textStyle,
    duration: Duration(milliseconds: duration),
    dismissOtherToast: dismissOtherToast,
    backgroundColor: backgroundColor,
  );
}