ButtonGroup.horizontal constructor

const ButtonGroup.horizontal({
  1. Key? key,
  2. bool expands = false,
  3. required List<Widget> children,
})

Creates a horizontal button group.

A convenience constructor equivalent to ButtonGroup(direction: Axis.horizontal). Arranges buttons in a row with connected borders.

Implementation

const ButtonGroup.horizontal({
  super.key,
  this.expands = false,
  required this.children,
}) : direction = Axis.horizontal;