ModCard constructor
const
ModCard({
- Key? key,
- required Widget header,
- List<
Widget> ? toolbar, - required Widget content,
- Color headerColor = Colors.transparent,
- Color contentColor = Colors.transparent,
- bool isAccordion = false,
- EdgeInsets margin = const EdgeInsets.all(8.0),
- EdgeInsets padding = const EdgeInsets.all(16.0),
- double borderRadius = 8.0,
- bool initiallyExpanded = false,
Implementation
const ModCard({
super.key,
required this.header,
this.toolbar,
required this.content,
this.footer,
this.headerColor = Colors.transparent,
this.contentColor = Colors.transparent,
this.footerColor = Colors.transparent,
this.isAccordion = false,
this.showFooterWhenCollapsed = false,
this.margin = const EdgeInsets.all(8.0),
this.padding = const EdgeInsets.all(16.0),
this.borderRadius = 8.0,
this.initiallyExpanded = false,
});