Accordion constructor
const
Accordion({
- Key? key,
- Widget child = const SizedBox(),
- EdgeInsets childPadding = const EdgeInsets.all(8.0),
- Duration duration = kThemeChangeDuration,
- bool isOpen = false,
- ValueChanged<
bool> ? onTap, - Widget title = const Text(''),
- 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),
});