|
1 |
| -using System; |
2 |
| -using System.Collections.Generic; |
| 1 | +using System.Collections.Generic; |
3 | 2 | using Unity.UIWidgets.foundation;
|
4 | 3 | using Unity.UIWidgets.gestures;
|
5 | 4 | using Unity.UIWidgets.painting;
|
@@ -664,14 +663,12 @@ public float textScaleFactor {
|
664 | 663 | }
|
665 | 664 |
|
666 | 665 | public TextSelection selection {
|
667 |
| - get { |
668 |
| - return this._selection; |
669 |
| - } |
| 666 | + get { return this._selection; } |
670 | 667 | set {
|
671 |
| - if (this._selection == value) { |
672 |
| - return; |
| 668 | + if (this._selection == value) { |
| 669 | + return; |
673 | 670 | }
|
674 |
| - |
| 671 | + |
675 | 672 | this._selection = value;
|
676 | 673 | this._selectionRects = null;
|
677 | 674 | this.markNeedsPaint();
|
@@ -906,7 +903,7 @@ public TextPosition getParagraphForward(TextPosition position, TextAffinity? aff
|
906 | 903 |
|
907 | 904 | public TextPosition getParagraphBackward(TextPosition position, TextAffinity? affinity = null) {
|
908 | 905 | var lineCount = this._textPainter.getLineCount();
|
909 |
| - |
| 906 | + |
910 | 907 | Paragraph.LineRange line = null;
|
911 | 908 | for (int i = lineCount - 1; i >= 0; --i) {
|
912 | 909 | line = this._textPainter.getLineRange(i);
|
@@ -1189,7 +1186,8 @@ void _paintCaret(Canvas canvas, Offset effectiveOffset, TextPosition textPositio
|
1189 | 1186 | }
|
1190 | 1187 | }
|
1191 | 1188 |
|
1192 |
| - public void setFloatingCursor(FloatingCursorDragState? state, Offset boundedOffset, TextPosition lastTextPosition, |
| 1189 | + public void setFloatingCursor(FloatingCursorDragState? state, Offset boundedOffset, |
| 1190 | + TextPosition lastTextPosition, |
1193 | 1191 | float? resetLerpValue = null) {
|
1194 | 1192 | D.assert(boundedOffset != null);
|
1195 | 1193 | D.assert(lastTextPosition != null);
|
|
0 commit comments