INNER CODE UNIT · Dart
right
fluttercandies/extended_text · lib/src/extended/text_overflow_mixin.dart:307
right = right + half;
if (left < 0) {
right -= left;
left = 0;
}
final double maxIntrinsicWidth = oneLineTextPainter.width;
if (right > maxIntrinsicWidth) {
left -= right - maxIntrinsicWidth;
right = maxIntrinsicWidth;
}
final _TextRange estimatedRange = _TextRange(
ExtendedTextLibraryUtils.convertTextPainterPostionToTextInputPostion(
text,
oneLineTextPainter.getPositionForOffset(
Offset(left, oneLineTextPainter.height / 2)))!
.offset,