SelectionRect constructor Null safety

const SelectionRect(
  1. {required int position,
  2. required Rect bounds}
)

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

Implementation

const SelectionRect({required this.position, required this.bounds});