ToggleList constructor

const ToggleList({
  1. Key? key,
  2. required List<ToggleButtonModel> toggleButtons,
  3. required void onChanged(
    1. ToggleButtonModel
    ),
  4. EdgeInsets? contentPadding,
  5. required int selectedIndex,
  6. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  7. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
})

Implementation

const ToggleList({
  Key? key,
  required this.toggleButtons,
  required this.onChanged,
  this.contentPadding,
  required this.selectedIndex,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
}) : super(key: key);