S2ChoiceConfig constructor

const S2ChoiceConfig({
  1. S2ChoiceType? type,
  2. S2ChoiceLayout layout = S2ChoiceLayout.list,
  3. Axis direction = Axis.vertical,
  4. double? spacing,
  5. double? runSpacing,
  6. EdgeInsetsGeometry? padding,
  7. SliverGridDelegate? gridDelegate,
  8. int gridCount = 2,
  9. double gridSpacing = 0,
  10. bool useDivider = false,
  11. Color? dividerColor,
  12. double? dividerSpacing,
  13. double? dividerThickness,
  14. Color? overscrollColor,
  15. S2ChoiceStyle? style,
  16. S2ChoiceStyle? activeStyle,
  17. ScrollPhysics physics = const ScrollPhysics(),
  18. int? pageLimit,
  19. Duration? delay,
})

Create choices configuration

Implementation

const S2ChoiceConfig({
  this.type,
  this.layout = S2ChoiceLayout.list,
  this.direction = Axis.vertical,
  this.spacing,
  this.runSpacing,
  this.padding,
  this.gridDelegate,
  this.gridCount = 2,
  this.gridSpacing = 0,
  this.useDivider = false,
  this.dividerColor,
  this.dividerSpacing,
  this.dividerThickness,
  this.overscrollColor,
  this.style,
  this.activeStyle,
  this.physics = const ScrollPhysics(),
  this.pageLimit,
  this.delay,
});