bool contains(Position position) { if (isEmpty) { return false; } return _start!.isBeforeOrSame(position) && _end!.isAfterOrSame(position); }