ToastTheme constructor

const ToastTheme({
  1. int? maxStackedEntries,
  2. EdgeInsetsGeometry? padding,
  3. ExpandMode? expandMode,
  4. Offset? collapsedOffset,
  5. double? collapsedScale,
  6. Curve? expandingCurve,
  7. Duration? expandingDuration,
  8. double? collapsedOpacity,
  9. double? entryOpacity,
  10. double? spacing,
  11. BoxConstraints? toastConstraints,
})

Creates a ToastTheme.

All parameters are optional and can be null to use intelligent defaults that integrate with the current theme's design system and provide professional toast notification behavior.

Example:

const ToastTheme(
  maxStackedEntries: 5,
  expandMode: ExpandMode.expandOnHover,
  spacing: 12.0,
  collapsedScale: 0.95,
);

Implementation

const ToastTheme({
  this.maxStackedEntries,
  this.padding,
  this.expandMode,
  this.collapsedOffset,
  this.collapsedScale,
  this.expandingCurve,
  this.expandingDuration,
  this.collapsedOpacity,
  this.entryOpacity,
  this.spacing,
  this.toastConstraints,
});