SelectionPoint constructor Null safety

const SelectionPoint(
  1. {required Offset localPosition,
  2. required double lineHeight,
  3. required TextSelectionHandleType handleType}
)

Creates a selection point object.

All properties must not be null.

Implementation

const SelectionPoint({
  required this.localPosition,
  required this.lineHeight,
  required this.handleType,
}) : assert(localPosition != null),
     assert(lineHeight != null),
     assert(handleType != null);