@@ -2125,7 +2125,6 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
2125
2125
late final Simulation _iosBlinkCursorSimulation = _DiscreteKeyFrameSimulation .iOSBlinkingCaret ();
2126
2126
2127
2127
final ValueNotifier <bool > _cursorVisibilityNotifier = ValueNotifier <bool >(true );
2128
- late final ValueNotifier <bool > _debugCursorNotifier;
2129
2128
final GlobalKey _editableKey = GlobalKey ();
2130
2129
2131
2130
/// Detects whether the clipboard can paste.
@@ -2793,7 +2792,6 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
2793
2792
_scrollController.addListener (_onEditableScroll);
2794
2793
_cursorVisibilityNotifier.value = widget.showCursor;
2795
2794
_spellCheckConfiguration = _inferSpellCheckConfiguration (widget.spellCheckConfiguration);
2796
- _debugCursorNotifier = ValueNotifier <bool >(widget.showCursor);
2797
2795
}
2798
2796
2799
2797
// Whether `TickerMode.of(context)` is true and animations (like blinking the
@@ -2938,7 +2936,6 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
2938
2936
2939
2937
@override
2940
2938
void dispose () {
2941
- _debugCursorNotifier.dispose ();
2942
2939
_internalScrollController? .dispose ();
2943
2940
_currentAutofillScope? .unregister (autofillId);
2944
2941
widget.controller.removeListener (_didChangeTextEditingValue);
@@ -4860,7 +4857,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
4860
4857
cursorColor: _cursorColor,
4861
4858
backgroundCursorColor: widget.backgroundCursorColor,
4862
4859
showCursor: EditableText .debugDeterministicCursor
4863
- ? _debugCursorNotifier
4860
+ ? ValueNotifier < bool >(widget.showCursor)
4864
4861
: _cursorVisibilityNotifier,
4865
4862
forceLine: widget.forceLine,
4866
4863
readOnly: widget.readOnly,
0 commit comments