FossToast constructor

const FossToast({
  1. Widget? title,
  2. Widget? description,
  3. FossToastVariant variant = FossToastVariant.neutral,
  4. Widget? icon,
  5. Widget? action,
  6. Duration? duration,
  7. FossToastStyle? style,
})

FossToast, light theme FossToast, dark theme

See the toast documentation ↗ or try it live in the playground ↗.

Creates a toast message.

Implementation

const FossToast({
  this.title,
  this.description,
  this.variant = FossToastVariant.neutral,
  this.icon,
  this.action,
  this.duration,
  this.style,
});