CupertinoTextSelectionToolbar constructor Null safety

const CupertinoTextSelectionToolbar(
  1. {Key? key,
  2. required Offset anchorAbove,
  3. required Offset anchorBelow,
  4. required List<Widget> children,
  5. CupertinoToolbarBuilder toolbarBuilder}
)

Creates an instance of CupertinoTextSelectionToolbar.

Implementation

const CupertinoTextSelectionToolbar({
  Key? key,
  required this.anchorAbove,
  required this.anchorBelow,
  required this.children,
  this.toolbarBuilder = _defaultToolbarBuilder,
}) : assert(children.length > 0),
     super(key: key);