MenuList constructor

const MenuList({
  1. Key? key,
  2. required List<FilterBean> filterList,
  3. dynamic onTap(
    1. int index
    )?,
  4. required DropDownMenuController menuController,
  5. required int index,
  6. Choose choose = Choose.single,
  7. EdgeInsetsGeometry? margin,
  8. EdgeInsetsGeometry? padding,
  9. int crossAxisCount = 1,
  10. Color bgColor = const Color(0x0DAB4BF4),
  11. Color unBgColor = Colors.white,
  12. Color outLineColor = const Color(0xffab4bf4),
  13. Color unOutLineColor = const Color(0xffacacac),
  14. double radius = 4,
  15. Color fontColor = const Color(0xffab4bf4),
  16. Color unFontColor = const Color(0xffacacac),
  17. double fontSize = 12,
  18. double? mainAxisExtent = 50,
})

Implementation

const MenuList({
  Key? key,
  required this.filterList,
  this.onTap,
  required this.menuController,
  required this.index,
  this.choose = Choose.single,
  this.margin,
  this.padding,
  this.crossAxisCount = 1,
  this.bgColor = const Color(0x0DAB4BF4),
  this.unBgColor = Colors.white,
  this.outLineColor = const Color(0xffab4bf4),
  this.unOutLineColor = const Color(0xffacacac),
  this.radius = 4,
  this.fontColor = const Color(0xffab4bf4),
  this.unFontColor = const Color(0xffacacac),
  this.fontSize = 12,
  this.mainAxisExtent = 50,
}) : super(key: key);