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: 200),
- double expandStartSpacing = 0,
- double expandSpacing = 10,
- double collapsedProtrusion = 12,
- double collapsedScale = 0.9,
- FToasterMotion motion = const FToasterMotion(),
- 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: 200),
this.expandStartSpacing = 0,
this.expandSpacing = 10,
this.collapsedProtrusion = 12,
this.collapsedScale = 0.9,
this.motion = const FToasterMotion(),
this.toastAlignment = FToastAlignment.bottomEnd,
});