show static method

void show(
  1. String? msg,
  2. BuildContext context, {
  3. int duration = 1,
  4. int gravity = 0,
  5. Color backgroundColor = const Color(0xAA000000),
  6. TextStyle textStyle = const TextStyle(fontSize: 15, color: Colors.white),
  7. double backgroundRadius = 20,
  8. bool rootNavigator = false,
  9. Border? border,
})

Implementation

static void show(
  String? msg,
  BuildContext context, {
  int duration = 1,
  int gravity = 0,
  Color backgroundColor = const Color(0xAA000000),
  TextStyle textStyle = const TextStyle(fontSize: 15, color: Colors.white),
  double backgroundRadius = 20,
  bool rootNavigator = false,
  Border? border,
}) {
  ToastView.dismiss();
  ToastView.createView(
    msg,
    context,
    duration,
    gravity,
    backgroundColor,
    textStyle,
    backgroundRadius,
    border,
    rootNavigator: rootNavigator,
  );
}