S2ChoiceConfig constructor
const
S2ChoiceConfig({
- S2ChoiceType? type,
- S2ChoiceLayout layout = S2ChoiceLayout.list,
- Axis direction = Axis.vertical,
- double? spacing,
- double? runSpacing,
- EdgeInsetsGeometry? padding,
- SliverGridDelegate? gridDelegate,
- int gridCount = 2,
- double gridSpacing = 0,
- bool useDivider = false,
- Color? dividerColor,
- double? dividerSpacing,
- double? dividerThickness,
- Color? overscrollColor,
- S2ChoiceStyle? style,
- S2ChoiceStyle? activeStyle,
- ScrollPhysics physics = const ScrollPhysics(),
- int? pageLimit,
- 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,
});