CupertinoDesktopTextSelectionToolbarButton.text constructor

const CupertinoDesktopTextSelectionToolbarButton.text({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required String? text,
})

Create an instance of CupertinoDesktopTextSelectionToolbarButton whose child is a Text widget styled like the default Mac context menu button.

Implementation

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