GrockDropdownMenuItem constructor

const GrockDropdownMenuItem({
  1. Key? key,
  2. required Text child,
  3. bool isDefaultAction = false,
  4. bool isDestructiveAction = false,
  5. dynamic onPressed(
    1. String? value
    )?,
  6. Widget? trailingWidget,
  7. BoxConstraints? constraints,
  8. BoxDecoration? decoration,
  9. EdgeInsetsGeometry? padding,
  10. bool isCenterChild = false,
})

Implementation

const GrockDropdownMenuItem({
  Key? key,
  required this.child,
  this.isDefaultAction = false,
  this.isDestructiveAction = false,
  this.onPressed,
  this.trailingWidget,
  this.constraints,
  this.decoration,
  this.padding,
  this.isCenterChild = false,
})  : assert(child != null),
      assert(isDefaultAction != null),
      assert(isDestructiveAction != null),
      super(key: key);