@@ -258,7 +258,7 @@ class TextSelectionOverlay {
258
258
onEndHandleDragStart: _handleSelectionEndHandleDragStart,
259
259
onEndHandleDragUpdate: _handleSelectionEndHandleDragUpdate,
260
260
toolbarVisible: _effectiveToolbarVisibility,
261
- selectionEndPoints : const < TextSelectionPoint > [],
261
+ selectionEndpoints : const < TextSelectionPoint > [],
262
262
selectionControls: selectionControls,
263
263
selectionDelegate: selectionDelegate,
264
264
clipboardStatus: clipboardStatus,
@@ -373,7 +373,7 @@ class TextSelectionOverlay {
373
373
)
374
374
..lineHeightAtEnd = _getEndGlyphHeight ()
375
375
// Update selection toolbar metrics.
376
- ..selectionEndPoints = renderObject.getEndpointsForSelection (_selection)
376
+ ..selectionEndpoints = renderObject.getEndpointsForSelection (_selection)
377
377
..toolbarLocation = renderObject.lastSecondaryTapDownPosition;
378
378
}
379
379
@@ -589,7 +589,7 @@ class SelectionOverlay {
589
589
this .onEndHandleDragUpdate,
590
590
this .onEndHandleDragEnd,
591
591
this .toolbarVisible,
592
- required List <TextSelectionPoint > selectionEndPoints ,
592
+ required List <TextSelectionPoint > selectionEndpoints ,
593
593
required this .selectionControls,
594
594
required this .selectionDelegate,
595
595
required this .clipboardStatus,
@@ -603,7 +603,7 @@ class SelectionOverlay {
603
603
_lineHeightAtStart = lineHeightAtStart,
604
604
_endHandleType = endHandleType,
605
605
_lineHeightAtEnd = lineHeightAtEnd,
606
- _selectionEndPoints = selectionEndPoints ,
606
+ _selectionEndpoints = selectionEndpoints ,
607
607
_toolbarLocation = toolbarLocation {
608
608
final OverlayState ? overlay = Overlay .of (context, rootOverlay: true );
609
609
assert (
@@ -721,13 +721,13 @@ class SelectionOverlay {
721
721
final ValueListenable <bool >? toolbarVisible;
722
722
723
723
/// The text selection positions of selection start and end.
724
- List <TextSelectionPoint > get selectionEndPoints => _selectionEndPoints ;
725
- List <TextSelectionPoint > _selectionEndPoints ;
726
- set selectionEndPoints (List <TextSelectionPoint > value) {
727
- if (! listEquals (_selectionEndPoints , value)) {
724
+ List <TextSelectionPoint > get selectionEndpoints => _selectionEndpoints ;
725
+ List <TextSelectionPoint > _selectionEndpoints ;
726
+ set selectionEndpoints (List <TextSelectionPoint > value) {
727
+ if (! listEquals (_selectionEndpoints , value)) {
728
728
_markNeedsBuild ();
729
729
}
730
- _selectionEndPoints = value;
730
+ _selectionEndpoints = value;
731
731
}
732
732
733
733
/// Debugging information for explaining why the [Overlay] is required.
@@ -800,7 +800,7 @@ class SelectionOverlay {
800
800
/// The location of where the toolbar should be drawn in relative to the
801
801
/// location of [toolbarLayerLink] .
802
802
///
803
- /// If this is null, the toolbar is drawn based on [selectionEndPoints ] and
803
+ /// If this is null, the toolbar is drawn based on [selectionEndpoints ] and
804
804
/// the rect of render object of [context] .
805
805
///
806
806
/// This is useful for displaying toolbars at the mouse right-click locations
@@ -988,19 +988,19 @@ class SelectionOverlay {
988
988
renderBox.localToGlobal (renderBox.size.bottomRight (Offset .zero)),
989
989
);
990
990
991
- final bool isMultiline = selectionEndPoints .last.point.dy - selectionEndPoints .first.point.dy >
991
+ final bool isMultiline = selectionEndpoints .last.point.dy - selectionEndpoints .first.point.dy >
992
992
lineHeightAtEnd / 2 ;
993
993
994
994
// If the selected text spans more than 1 line, horizontally center the toolbar.
995
995
// Derived from both iOS and Android.
996
996
final double midX = isMultiline
997
997
? editingRegion.width / 2
998
- : (selectionEndPoints .first.point.dx + selectionEndPoints .last.point.dx) / 2 ;
998
+ : (selectionEndpoints .first.point.dx + selectionEndpoints .last.point.dx) / 2 ;
999
999
1000
1000
final Offset midpoint = Offset (
1001
1001
midX,
1002
1002
// The y-coordinate won't be made use of most likely.
1003
- selectionEndPoints .first.point.dy - lineHeightAtStart,
1003
+ selectionEndpoints .first.point.dy - lineHeightAtStart,
1004
1004
);
1005
1005
1006
1006
return Directionality (
@@ -1012,7 +1012,7 @@ class SelectionOverlay {
1012
1012
editingRegion: editingRegion,
1013
1013
selectionControls: selectionControls,
1014
1014
midpoint: midpoint,
1015
- selectionEndpoints: selectionEndPoints ,
1015
+ selectionEndpoints: selectionEndpoints ,
1016
1016
visibility: toolbarVisible,
1017
1017
selectionDelegate: selectionDelegate,
1018
1018
clipboardStatus: clipboardStatus,
0 commit comments