CupertinoSlidingSegmentedControl<T> constructor

  1. @Goto(_i1.CupertinoSlidingSegmentedControl.new)
CupertinoSlidingSegmentedControl<T>(
  1. $ $config, {
  2. Key? key,
  3. required Map<T, Widget> children,
  4. required ValueChanged<T?> onValueChanged,
  5. T? groupValue,
  6. Color thumbColor = _kThumbColor,
  7. EdgeInsetsGeometry padding = _kHorizontalItemPadding,
  8. 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),
        ),
      );