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