ToastCloseButton constructor

const ToastCloseButton({
  1. CloseButtonShowType showType = CloseButtonShowType.always,
  2. CloseButtonBuilder? buttonBuilder,
})

Creates a ToastCloseButton instance.

showType determines when the close button should be visible. buttonBuilder optional custom builder for the close button widget.

Implementation

const ToastCloseButton({
  this.showType = CloseButtonShowType.always,
  this.buttonBuilder,
});