FToasterStyle constructor

const FToasterStyle({
  1. required FToastStyle toastStyle,
  2. double max = 3,
  3. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
  4. FToasterExpandBehavior expandBehavior = FToasterExpandBehavior.hoverOrPress,
  5. Duration expandHoverEnterDuration = const Duration(milliseconds: 200),
  6. Duration expandHoverExitDuration = const Duration(milliseconds: 300),
  7. double expandStartSpacing = 16,
  8. double expandSpacing = 10,
  9. Duration expandDuration = const Duration(milliseconds: 500),
  10. Curve expandCurve = Curves.easeInOutCubic,
  11. double collapsedProtrusion = 12,
  12. double collapsedScale = 0.9,
  13. 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,
});