ToastEntryLayout constructor
const
ToastEntryLayout({
- Key? key,
- required ToastEntry entry,
- required bool expanded,
- bool visible = true,
- bool dismissible = true,
- AlignmentGeometry previousAlignment = Alignment.center,
- Curve curve = Curves.easeInOut,
- Duration duration = kDefaultDuration,
- required CapturedThemes? themes,
- required CapturedData? data,
- required ValueListenable<
bool> closing, - required VoidCallback onClosed,
- required Offset collapsedOffset,
- required double collapsedScale,
- Curve expandingCurve = Curves.easeInOut,
- Duration expandingDuration = kDefaultDuration,
- double collapsedOpacity = 0.8,
- double entryOpacity = 0.0,
- required Offset entryOffset,
- required Widget child,
- required AlignmentGeometry entryAlignment,
- required double spacing,
- required int index,
- required int actualIndex,
- 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,
});