CupertinoTextSelectionToolbarButton constructor Null safety

const CupertinoTextSelectionToolbarButton(
  1. {Key? key,
  2. VoidCallback? onPressed,
  3. required Widget child}
)

Create an instance of CupertinoTextSelectionToolbarButton.

child cannot be null.

Implementation

const CupertinoTextSelectionToolbarButton({
  super.key,
  this.onPressed,
  required Widget this.child,
}) : assert(child != null),
     buttonItem = null;