DNToggleButton constructor

const DNToggleButton({
  1. int selectedIndex = 0,
  2. Key? key,
  3. Color? activeColor,
  4. required List<String> labels,
  5. void onChanged(
    1. int index
    )?,
  6. double height = 48.0,
  7. double fontSize = 16.0,
  8. FontWeight fontWeight = FontWeight.normal,
})

Implementation

const DNToggleButton({
  this.selectedIndex = 0,
  super.key,
  this.activeColor,
  required this.labels,
  this.onChanged,
  this.height = 48.0,
  this.fontSize = 16.0,
  this.fontWeight = FontWeight.normal,
});