CupertinoSlidingSegmentedControl<T> constructor
- @Goto(_i1.CupertinoSlidingSegmentedControl.new)
CupertinoSlidingSegmentedControl<T>(
- $ $config, {
- Key? key,
- required Map<T, Widget> children,
- required ValueChanged<T?> onValueChanged,
- T? groupValue,
- Color thumbColor = _kThumbColor,
- EdgeInsetsGeometry padding = _kHorizontalItemPadding,
- Color backgroundColor = _i1.CupertinoColors.tertiarySystemFill,
})
Implementation
@Goto(_i1.CupertinoSlidingSegmentedControl.new)
CupertinoSlidingSegmentedControl(
$ $config, {
_i2.Key? key,
required Map<T, _i3.Widget> children,
required _i2.ValueChanged<T?> onValueChanged,
T? groupValue,
ui.Color thumbColor = _kThumbColor,
_i4.EdgeInsetsGeometry padding = _kHorizontalItemPadding,
ui.Color backgroundColor = _i1.CupertinoColors.tertiarySystemFill,
}) : super(
Argument({
#key: key,
#children: children,
#onValueChanged: onValueChanged,
#groupValue: groupValue,
#thumbColor: thumbColor,
#padding: padding,
#backgroundColor: backgroundColor,
}),
builder: (args) => _i1.CupertinoSlidingSegmentedControl<T>(
key: args(#key),
children: args(#children),
onValueChanged: args(#onValueChanged),
groupValue: args(#groupValue),
thumbColor: args(#thumbColor),
padding: args(#padding),
backgroundColor: args(#backgroundColor),
),
);