DropDownHeader constructor
const
DropDownHeader({
- Key? key,
- required String title,
- required int index,
- dynamic onTap()?,
- String tag = 'default',
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 14),
- TextStyle selectTextStyle = const TextStyle(color: Colors.black, fontSize: 14),
- double iconSize = 24,
- double selectIconSize = 24,
- Color iconColor = Colors.black,
- Color selectIconColor = Colors.black,
- Curve curve = Curves.decelerate,
- 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),
});