ToastEntryLayout constructor

const ToastEntryLayout({
  1. Key? key,
  2. required ToastEntry entry,
  3. required bool expanded,
  4. bool visible = true,
  5. bool dismissible = true,
  6. AlignmentGeometry previousAlignment = Alignment.center,
  7. Curve curve = Curves.easeInOut,
  8. Duration duration = kDefaultDuration,
  9. required CapturedThemes? themes,
  10. required CapturedData? data,
  11. required ValueListenable<bool> closing,
  12. required VoidCallback onClosed,
  13. required Offset collapsedOffset,
  14. required double collapsedScale,
  15. Curve expandingCurve = Curves.easeInOut,
  16. Duration expandingDuration = kDefaultDuration,
  17. double collapsedOpacity = 0.8,
  18. double entryOpacity = 0.0,
  19. required Offset entryOffset,
  20. required Widget child,
  21. required AlignmentGeometry entryAlignment,
  22. required double spacing,
  23. required int index,
  24. required int actualIndex,
  25. required VoidCallback? onClosing,
})

Implementation

const ToastEntryLayout({
  super.key,
  required this.entry,
  required this.expanded,
  this.visible = true,
  this.dismissible = true,
  this.previousAlignment = Alignment.center,
  this.curve = Curves.easeInOut,
  this.duration = kDefaultDuration,
  required this.themes,
  required this.data,
  required this.closing,
  required this.onClosed,
  required this.collapsedOffset,
  required this.collapsedScale,
  this.expandingCurve = Curves.easeInOut,
  this.expandingDuration = kDefaultDuration,
  this.collapsedOpacity = 0.8,
  this.entryOpacity = 0.0,
  required this.entryOffset,
  required this.child,
  required this.entryAlignment,
  required this.spacing,
  required this.index,
  required this.actualIndex,
  required this.onClosing,
});