TButtonGroup constructor

const TButtonGroup({
  1. Key? key,
  2. TButtonGroupTheme? theme,
  3. TButtonGroupType? type,
  4. Color? color,
  5. TButtonSize? size,
  6. List<TButtonGroupItem> items = const [],
  7. WrapAlignment alignment = WrapAlignment.start,
})

Implementation

const TButtonGroup({
  super.key,
  this.theme,
  this.type,
  this.color,
  this.size,
  this.items = const [],
  this.alignment = WrapAlignment.start,
}) : assert(
        theme == null || (type == null && size == null && color == null),
        'If theme is provided, type, color and size must be null.',
      );