S2ChoiceConfig class

Choices configuration

Constructors

S2ChoiceConfig({S2ChoiceType type, S2ChoiceLayout layout = S2ChoiceLayout.list, Axis direction = Axis.vertical, SliverGridDelegate gridDelegate, bool isGrouped = false, bool useDivider = false, Color overscrollColor, S2ChoiceHeaderStyle headerStyle = const S2ChoiceHeaderStyle(), S2ChoiceStyle style = const S2ChoiceStyle()})
Create choices configuration
const

Properties

direction Axis
choice list scroll direction currently only support when layout is S2ChoiceLayout.wrap
final
gridDelegate SliverGridDelegate
final
hashCode int
The hash code for this object. [...]
read-only, inherited
headerStyle S2ChoiceHeaderStyle
Configure choices group header theme
final
isGrouped bool
Whether the choices list is grouped
final
layout S2ChoiceLayout
Choice list layout
final
overscrollColor Color
Custom color of the glowing indicator when overscroll the choices list
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
style S2ChoiceStyle
Configure choices item style
final
type S2ChoiceType
When isMultiChoice is true choiceType can use S2ChoiceType.checkboxes or S2ChoiceType.switches or S2ChoiceType.chips and when isMultiChoice is false choiceType can use S2ChoiceType.radios or S2ChoiceType.chips
final
useDivider bool
Whether the choices item use divider or not
final

Methods

copyWith({S2ChoiceType type, S2ChoiceLayout layout, SliverGridDelegate gridDelegate, Axis direction, bool isGrouped, bool useDivider, Color overscrollColor, S2ChoiceStyle style, S2ChoiceHeaderStyle headerStyle}) S2ChoiceConfig
Creates a copy of this S2ChoiceConfig but with the given fields replaced with the new values.
merge(S2ChoiceConfig other) S2ChoiceConfig
Creates a copy of this S2ChoiceConfig but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited