ToastBuilder typedef

ToastBuilder = Widget Function(BuildContext context, ToastOverlay overlay)

Builder function for custom toast widgets.

Parameters:

  • context: The build context
  • gap: Vertical spacing between toasts
  • alignment: Visual alignment of the toast

Returns a widget representing the toast.

Implementation

typedef ToastBuilder = Widget Function(
    BuildContext context, ToastOverlay overlay);