show static method

void show(
  1. BuildContext context, {
  2. required String msg,
  3. int showTime = 2000,
  4. Color? bgColor,
  5. Color? textColor,
  6. double textSize = 14,
  7. VxToastPosition position = VxToastPosition.bottom,
  8. double pdHorizontal = 20,
  9. double pdVertical = 10,
})

Implementation

static void show(
  BuildContext context, {
  required String msg,
  int showTime = 2000,
  Color? bgColor,
  Color? textColor,
  double textSize = 14,
  VxToastPosition position = VxToastPosition.bottom,
  double pdHorizontal = 20,
  double pdVertical = 10,
}) {
  _showToast(
    context,
    msg: msg,
    showTime: showTime,
    bgColor: bgColor,
    textColor: textColor,
    textSize: textSize,
    position: position,
    pdHorizontal: pdHorizontal,
    pdVertical: pdVertical,
    type: VxToastType.text,
  );
}