DropdownItemOptions constructor

const DropdownItemOptions({
  1. double height = 40,
  2. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10),
  3. Alignment alignment = Alignment.centerLeft,
  4. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  5. DropdownItemRender render = DropdownItemRender.all,
  6. BoxDecoration boxDecoration = const BoxDecoration(color: Color(0xFFFFFFFF)),
  7. BoxDecoration selectedBoxDecoration = const BoxDecoration(color: Color(0XFFEFFAF0), borderRadius: BorderRadius.all(Radius.circular(10))),
  8. TextStyle textStyle = const TextStyle(color: Color(0xff000000), fontSize: 16, fontWeight: FontWeight.w400),
  9. TextStyle selectedTextStyle = const TextStyle(color: Color(0xFF6FCC76), fontSize: 16, fontWeight: FontWeight.w400),
  10. EdgeInsets selectedPadding = const EdgeInsets.only(left: 20, right: 10),
  11. TextOverflow textOverflow = TextOverflow.ellipsis,
  12. bool isMarquee = false,
  13. Duration duration = const Duration(milliseconds: 300),
  14. Duration marqueeDuration = const Duration(milliseconds: 6000),
  15. Duration backDuration = const Duration(milliseconds: 800),
  16. Duration pauseDuration = const Duration(milliseconds: 800),
})

Implementation

const DropdownItemOptions({
  this.height = 40,
  this.padding = const EdgeInsets.symmetric(horizontal: 10),
  this.alignment = Alignment.centerLeft,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.render = DropdownItemRender.all,
  this.boxDecoration = const BoxDecoration(
    color: Color(0xFFFFFFFF),
  ),
  this.selectedBoxDecoration = const BoxDecoration(
    color: Color(0XFFEFFAF0),
    borderRadius: BorderRadius.all(Radius.circular(10)),
  ),
  this.textStyle = const TextStyle(
    color: Color(0xff000000),
    fontSize: 16,
    fontWeight: FontWeight.w400,
  ),
  this.selectedTextStyle = const TextStyle(
    color: Color(0xFF6FCC76),
    fontSize: 16,
    fontWeight: FontWeight.w400,
  ),
  this.selectedPadding = const EdgeInsets.only(left: 20, right: 10),
  this.textOverflow = TextOverflow.ellipsis,
  this.isMarquee = false,
  this.duration = const Duration(milliseconds: 300),
  this.marqueeDuration = const Duration(milliseconds: 6000),
  this.backDuration = const Duration(milliseconds: 800),
  this.pauseDuration = const Duration(milliseconds: 800),
});