show static method

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

Implementation

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