showMultiToast function

Future<void> showMultiToast({
  1. required List<Toast> toasts,
  2. required BuildContext context,
})

Shows multi toasts at the same time.

toasts and context must not be null.

Implementation

Future<void> showMultiToast({
  required List<Toast> toasts,
  required BuildContext context,
}) async {
  for (Toast toast in toasts)
    await showToastWidget(toast: toast, context: context);
}