DropDownHeader constructor

const DropDownHeader({
  1. Key? key,
  2. required String title,
  3. required int index,
  4. dynamic onTap(
    1. int
    )?,
  5. String tag = 'default',
  6. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 14),
  7. TextStyle selectTextStyle = const TextStyle(color: Colors.black, fontSize: 14),
  8. double iconSize = 24,
  9. double selectIconSize = 24,
  10. Color iconColor = Colors.black,
  11. Color selectIconColor = Colors.black,
  12. Curve curve = Curves.decelerate,
  13. Duration duration = const Duration(milliseconds: 300),
})

Implementation

const DropDownHeader({
  super.key,
  required this.title,
  required this.index,
  this.onTap,
  this.tag = 'default',
  this.textStyle = const TextStyle(
    color: Colors.black,
    fontSize: 14,
  ),
  this.selectTextStyle = const TextStyle(
    color: Colors.black,
    fontSize: 14,
  ),
  this.iconSize = 24,
  this.selectIconSize = 24,
  this.iconColor = Colors.black,
  this.selectIconColor = Colors.black,
  this.curve = Curves.decelerate,
  this.duration = const Duration(milliseconds: 300),
});