CupertinoTextSelectionToolbarButton.buttonItem constructor

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

Create an instance of CupertinoTextSelectionToolbarButton from the given ContextMenuButtonItem.

Implementation

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