@@ -258,7 +258,7 @@ class TextSelectionOverlay {
258258 onEndHandleDragStart: _handleSelectionEndHandleDragStart,
259259 onEndHandleDragUpdate: _handleSelectionEndHandleDragUpdate,
260260 toolbarVisible: _effectiveToolbarVisibility,
261- selectionEndPoints : const < TextSelectionPoint > [],
261+ selectionEndpoints : const < TextSelectionPoint > [],
262262 selectionControls: selectionControls,
263263 selectionDelegate: selectionDelegate,
264264 clipboardStatus: clipboardStatus,
@@ -373,7 +373,7 @@ class TextSelectionOverlay {
373373 )
374374 ..lineHeightAtEnd = _getEndGlyphHeight ()
375375 // Update selection toolbar metrics.
376- ..selectionEndPoints = renderObject.getEndpointsForSelection (_selection)
376+ ..selectionEndpoints = renderObject.getEndpointsForSelection (_selection)
377377 ..toolbarLocation = renderObject.lastSecondaryTapDownPosition;
378378 }
379379
@@ -589,7 +589,7 @@ class SelectionOverlay {
589589 this .onEndHandleDragUpdate,
590590 this .onEndHandleDragEnd,
591591 this .toolbarVisible,
592- required List <TextSelectionPoint > selectionEndPoints ,
592+ required List <TextSelectionPoint > selectionEndpoints ,
593593 required this .selectionControls,
594594 required this .selectionDelegate,
595595 required this .clipboardStatus,
@@ -603,7 +603,7 @@ class SelectionOverlay {
603603 _lineHeightAtStart = lineHeightAtStart,
604604 _endHandleType = endHandleType,
605605 _lineHeightAtEnd = lineHeightAtEnd,
606- _selectionEndPoints = selectionEndPoints ,
606+ _selectionEndpoints = selectionEndpoints ,
607607 _toolbarLocation = toolbarLocation {
608608 final OverlayState ? overlay = Overlay .of (context, rootOverlay: true );
609609 assert (
@@ -721,13 +721,13 @@ class SelectionOverlay {
721721 final ValueListenable <bool >? toolbarVisible;
722722
723723 /// 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)) {
728728 _markNeedsBuild ();
729729 }
730- _selectionEndPoints = value;
730+ _selectionEndpoints = value;
731731 }
732732
733733 /// Debugging information for explaining why the [Overlay] is required.
@@ -800,7 +800,7 @@ class SelectionOverlay {
800800 /// The location of where the toolbar should be drawn in relative to the
801801 /// location of [toolbarLayerLink] .
802802 ///
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
804804 /// the rect of render object of [context] .
805805 ///
806806 /// This is useful for displaying toolbars at the mouse right-click locations
@@ -988,19 +988,19 @@ class SelectionOverlay {
988988 renderBox.localToGlobal (renderBox.size.bottomRight (Offset .zero)),
989989 );
990990
991- final bool isMultiline = selectionEndPoints .last.point.dy - selectionEndPoints .first.point.dy >
991+ final bool isMultiline = selectionEndpoints .last.point.dy - selectionEndpoints .first.point.dy >
992992 lineHeightAtEnd / 2 ;
993993
994994 // If the selected text spans more than 1 line, horizontally center the toolbar.
995995 // Derived from both iOS and Android.
996996 final double midX = isMultiline
997997 ? editingRegion.width / 2
998- : (selectionEndPoints .first.point.dx + selectionEndPoints .last.point.dx) / 2 ;
998+ : (selectionEndpoints .first.point.dx + selectionEndpoints .last.point.dx) / 2 ;
999999
10001000 final Offset midpoint = Offset (
10011001 midX,
10021002 // The y-coordinate won't be made use of most likely.
1003- selectionEndPoints .first.point.dy - lineHeightAtStart,
1003+ selectionEndpoints .first.point.dy - lineHeightAtStart,
10041004 );
10051005
10061006 return Directionality (
@@ -1012,7 +1012,7 @@ class SelectionOverlay {
10121012 editingRegion: editingRegion,
10131013 selectionControls: selectionControls,
10141014 midpoint: midpoint,
1015- selectionEndpoints: selectionEndPoints ,
1015+ selectionEndpoints: selectionEndpoints ,
10161016 visibility: toolbarVisible,
10171017 selectionDelegate: selectionDelegate,
10181018 clipboardStatus: clipboardStatus,
0 commit comments