CupertinoDesktopTextSelectionToolbarButton.buttonItem constructor
- Key? key,
- 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;