NsgDropdownMenuItem constructor

const NsgDropdownMenuItem({
  1. Key? key,
  2. required String text,
  3. Color? backColor,
  4. double? width,
  5. IconData? iconLeft,
  6. IconData? iconRight,
  7. Color? color,
  8. double? rotateAngle,
  9. int? value,
  10. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 16),
  11. String? svgLeft,
  12. TextAlign? textAlign,
  13. MainAxisAlignment? mainAxisAlignment,
})

Implementation

const NsgDropdownMenuItem({
  super.key,
  required this.text,
  this.backColor,
  this.width,
  this.iconLeft,
  this.iconRight,
  this.color,
  this.rotateAngle,
  this.value,
  this.textStyle = const TextStyle(color: Colors.white, fontSize: 16),
  this.svgLeft,
  this.textAlign,
  this.mainAxisAlignment,
});