Accordion constructor

const Accordion({
  1. Key? key,
  2. Widget child = const SizedBox(),
  3. EdgeInsets childPadding = const EdgeInsets.all(8.0),
  4. Duration duration = kThemeChangeDuration,
  5. bool isOpen = false,
  6. ValueChanged<bool>? onTap,
  7. Widget title = const Text(''),
  8. EdgeInsets titlePadding = const EdgeInsets.all(8.0),
})

An accordion allows a user to toggle the display of a section of content.

Implementation

const Accordion({
  super.key,
  this.child = const SizedBox(),
  this.childPadding = const EdgeInsets.all(8.0),
  this.duration = kThemeChangeDuration,
  this.isOpen = false,
  this.onTap,
  this.title = const Text(''),
  this.titlePadding = const EdgeInsets.all(8.0),
});