ToastLayer constructor
const
ToastLayer({
- Key? key,
- required Widget child,
- int maxStackedEntries = 3,
- EdgeInsetsGeometry? padding,
- ExpandMode expandMode = ExpandMode.expandOnHover,
- Offset? collapsedOffset,
- double collapsedScale = 0.9,
- Curve expandingCurve = Curves.easeOutCubic,
- Duration expandingDuration = const Duration(milliseconds: 500),
- double collapsedOpacity = 1,
- double entryOpacity = 0.0,
- double spacing = 8,
- BoxConstraints? toastConstraints,
Implementation
const ToastLayer({
super.key,
required this.child,
this.maxStackedEntries = 3,
this.padding,
this.expandMode = ExpandMode.expandOnHover,
this.collapsedOffset,
this.collapsedScale = 0.9,
this.expandingCurve = Curves.easeOutCubic,
this.expandingDuration = const Duration(milliseconds: 500),
this.collapsedOpacity = 1,
this.entryOpacity = 0.0,
this.spacing = 8,
this.toastConstraints,
});