ToastTheme constructor
const
ToastTheme({
- int? maxStackedEntries,
- EdgeInsetsGeometry? padding,
- ExpandMode? expandMode,
- Offset? collapsedOffset,
- double? collapsedScale,
- Curve? expandingCurve,
- Duration? expandingDuration,
- double? collapsedOpacity,
- double? entryOpacity,
- double? spacing,
- 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,
});