ToastLayer constructor

const ToastLayer({
  1. Key? key,
  2. required Widget child,
  3. int maxStackedEntries = 3,
  4. EdgeInsetsGeometry? padding,
  5. ExpandMode expandMode = ExpandMode.expandOnHover,
  6. Offset? collapsedOffset,
  7. double collapsedScale = 0.9,
  8. Curve expandingCurve = Curves.easeOutCubic,
  9. Duration expandingDuration = const Duration(milliseconds: 500),
  10. double collapsedOpacity = 1,
  11. double entryOpacity = 0.0,
  12. double spacing = 8,
  13. 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,
});