show static method

void show(
  1. BuildContext context,
  2. String message, {
  3. ToastType type = ToastType.info,
  4. Duration duration = const Duration(seconds: 2),
})

Implementation

static void show(
  BuildContext context,
  String message, {
  ToastType type = ToastType.info,
  Duration duration = const Duration(seconds: 2),
}) {
  instance._showToast(context, message, type, duration);
}