CupertinoDesktopTextSelectionToolbarButton.buttonItem constructor

CupertinoDesktopTextSelectionToolbarButton.buttonItem({
  1. Key? key,
  2. required ContextMenuButtonItem buttonItem,
})

Create an instance of CupertinoDesktopTextSelectionToolbarButton from the given ContextMenuButtonItem.

Implementation

CupertinoDesktopTextSelectionToolbarButton.buttonItem({
  super.key,
  required ContextMenuButtonItem this.buttonItem,
})  : onPressed = buttonItem.onPressed,
      text = null,
      child = null;