buildIconToast method

Widget buildIconToast(
  1. Widget toast,
  2. ToastOptions toastOptions
)

Implementation

Widget buildIconToast(Widget toast, ToastOptions toastOptions) {
  IconData? icon = customIcon ?? style?.value;
  return icon == null
      ? toast
      : IconBox(
          icon: icon,
          direction: toastOptions.direction,
          spacing: toastOptions.spacing,
          size: toastOptions.iconSize,
          color: toastOptions.iconColor,
          title: toast);
}