SelectionRect constructor

const SelectionRect({
  1. required int position,
  2. required Rect bounds,
  3. TextDirection direction = TextDirection.ltr,
})

Constructor for creating a SelectionRect from a text position and bounds.

Implementation

const SelectionRect({
  required this.position,
  required this.bounds,
  this.direction = TextDirection.ltr,
});