PopupMenusButton<T> constructor

const PopupMenusButton<T>({
  1. Key? key,
  2. required PopupMenusItemBuilder<T> itemBuilder,
  3. T? initialValue,
  4. PopupMenusItemSelected<T>? onSelected,
  5. PopupMenusCanceled? onCanceled,
  6. String? tooltip,
  7. double? elevation,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  9. Widget? child,
  10. Widget? icon,
  11. double? iconSize,
  12. PoupMenusOffsetBuilder? offsetBuilder,
  13. bool enabled = true,
  14. ShapeBorder? shape,
  15. Color? color,
  16. bool blur = false,
  17. bool? enableFeedback,
  18. required ContextBuilder builder,
})

Implementation

const PopupMenusButton({
  Key? key,
  required this.itemBuilder,
  this.initialValue,
  this.onSelected,
  this.onCanceled,
  this.tooltip,
  this.elevation,
  this.padding = const EdgeInsets.all(8.0),
  this.child,
  this.icon,
  this.iconSize,
  this.offsetBuilder,
  this.enabled = true,
  this.shape,
  this.color,
  this.blur = false,
  this.enableFeedback,
  required this.builder,
})  : assert(
        !(child != null && icon != null),
        'You can only pass [child] or [icon], not both.',
      ),
      super(key: key);