FastPopupMenuButton<T> constructor

const FastPopupMenuButton<T>({
  1. Key? key,
  2. required PopupMenuItemBuilder<T> itemBuilder,
  3. required Widget icon,
  4. T? initialValue,
  5. VoidCallback? onOpened,
  6. PopupMenuItemSelected<T>? onSelected,
  7. PopupMenuCanceled? onCanceled,
  8. String? tooltip,
  9. double? elevation,
  10. Color? shadowColor,
  11. Offset offset = Offset.zero,
  12. bool enabled = true,
  13. ShapeBorder? shape,
  14. Color? color,
  15. BoxConstraints? constraints,
  16. PopupMenuPosition? position,
  17. Widget? child,
  18. Clip clipBehavior = Clip.none,
  19. EdgeInsetsGeometry? padding,
  20. double? iconSize,
  21. Alignment? iconAlignment,
})

Implementation

const FastPopupMenuButton({
  super.key,
  required this.itemBuilder,
  required this.icon,
  this.initialValue,
  this.onOpened,
  this.onSelected,
  this.onCanceled,
  this.tooltip,
  this.elevation,
  this.shadowColor,
  this.offset = Offset.zero,
  this.enabled = true,
  this.shape,
  this.color,
  this.constraints,
  this.position,
  this.child,
  this.clipBehavior = Clip.none,
  EdgeInsetsGeometry? padding,
  double? iconSize,
  Alignment? iconAlignment,
})  : iconAlignment = iconAlignment ?? Alignment.center,
      iconSize = iconSize ?? kFastIconSizeSmall,
      padding = padding ?? kFastEdgeInsets8;