FAccordionStyle constructor

FAccordionStyle({
  1. required TextStyle titleTextStyle,
  2. required TextStyle childTextStyle,
  3. required Color iconColor,
  4. required FDividerStyle dividerStyle,
  5. EdgeInsets titlePadding = const EdgeInsets.symmetric(vertical: 15),
  6. EdgeInsets childPadding = const EdgeInsets.only(bottom: 15),
  7. double iconSize = 20,
  8. Duration animationDuration = const Duration(milliseconds: 200),
})

Creates a FAccordionStyle.

Implementation

FAccordionStyle({
  required this.titleTextStyle,
  required this.childTextStyle,
  required this.iconColor,
  required this.dividerStyle,
  this.titlePadding = const EdgeInsets.symmetric(vertical: 15),
  this.childPadding = const EdgeInsets.only(bottom: 15),
  this.iconSize = 20,
  this.animationDuration = const Duration(milliseconds: 200),
}) : assert(0 < iconSize, 'iconSize should be positive.');