TextSelectionPoint constructor Null safety

const TextSelectionPoint(
  1. Offset point,
  2. TextDirection? direction
)

Creates a description of a point in a text selection.

The point argument must not be null.

Implementation

const TextSelectionPoint(this.point, this.direction)
  : assert(point != null);