ExpressiveButtonGroup constructor

const ExpressiveButtonGroup({
  1. required List<Widget> children,
  2. ExpressiveButtonSize size = ExpressiveButtonSize.small,
  3. bool expand = false,
  4. List<double>? weights,
  5. double expandedRatio = ButtonGroupBehavior.expandedRatio,
  6. Key? key,
})

A button group of children in a row, sized by size.

Implementation

const ExpressiveButtonGroup({
  required this.children,
  this.size = ExpressiveButtonSize.small,
  this.expand = false,
  this.weights,
  this.expandedRatio = ButtonGroupBehavior.expandedRatio,
  super.key,
}) : _spacing = null,
     assert(weights == null || weights.length == children.length);