TButtonGroup constructor
const
TButtonGroup({
- Key? key,
- TButtonGroupTheme? theme,
- TButtonGroupType? type,
- Color? color,
- TButtonSize? size,
- List<
TButtonGroupItem> items = const [], - WrapAlignment alignment = WrapAlignment.start,
- bool cycle = false,
- int? initialIndex,
- ValueChanged<
int> ? onIndexChanged, - bool separated = false,
- double? spacing,
- bool? showTick,
- Alignment? tickAlignment,
- Widget? tickWidget,
- bool expanded = false,
- String? label,
- String? tag,
- bool isRequired = false,
- String? helperText,
- String? info,
Creates a button group.
Implementation
const TButtonGroup({
super.key,
this.theme,
this.type,
this.color,
this.size,
this.items = const [],
this.alignment = WrapAlignment.start,
this.cycle = false,
this.initialIndex,
this.onIndexChanged,
this.separated = false,
this.spacing,
this.showTick,
this.tickAlignment,
this.tickWidget,
this.expanded = false,
this.label,
this.tag,
this.isRequired = false,
this.helperText,
this.info,
}) : assert(
theme == null || (type == null && size == null && color == null),
'If theme is provided, type, color and size must be null.',
);