Toast constructor

const Toast({
  1. Key? key,
  2. ToastLocation? location,
  3. Duration? showDuration,
  4. bool dismissible = true,
  5. Duration? entryDuration,
  6. required Widget builder(
    1. BuildContext context
    ),
})

Constructs a Toast notification.

The builder defines the widget content to display. Optional parameters override theme defaults for location, durations, and dismissibility, enabling flexible toast handling in Arcane apps.

Implementation

const Toast({
  super.key,
  this.location,
  this.showDuration,
  this.dismissible = true,
  this.entryDuration,
  required this.builder,
});