FToasterStyle constructor
const
FToasterStyle({
- required FToastStyle toastStyle,
- double max = 3,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
- FToasterExpandBehavior expandBehavior = FToasterExpandBehavior.hoverOrPress,
- Duration expandHoverEnterDuration = const Duration(milliseconds: 200),
- Duration expandHoverExitDuration = const Duration(milliseconds: 300),
- double expandStartSpacing = 16,
- double expandSpacing = 10,
- Duration expandDuration = const Duration(milliseconds: 500),
- Curve expandCurve = Curves.easeInOutCubic,
- double collapsedProtrusion = 12,
- double collapsedScale = 0.9,
- FToastAlignment toastAlignment = FToastAlignment.bottomEnd,
Creates a FToasterStyle.
Implementation
const FToasterStyle({
required this.toastStyle,
this.max = 3,
this.padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
this.expandBehavior = FToasterExpandBehavior.hoverOrPress,
this.expandHoverEnterDuration = const Duration(milliseconds: 200),
this.expandHoverExitDuration = const Duration(milliseconds: 300),
this.expandStartSpacing = 16,
this.expandSpacing = 10,
this.expandDuration = const Duration(milliseconds: 500),
this.expandCurve = Curves.easeInOutCubic,
this.collapsedProtrusion = 12,
this.collapsedScale = 0.9,
this.toastAlignment = FToastAlignment.bottomEnd,
});