From dad9eb21f9c34ebbed1328d24bb9069168e14eae Mon Sep 17 00:00:00 2001 From: suragch Date: Wed, 22 Feb 2023 07:16:23 +0800 Subject: [PATCH] fix spelling typo (#120062) * fix spelling typo * _index not nullable This address the comment here: https://github.com/flutter/flutter/pull/120062#issuecomment-1421424676 --- packages/flutter/lib/src/widgets/editable_text.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 8fcb7885789..5c96f232704 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -5385,8 +5385,8 @@ class _UndoStack { final List _list = []; - // The index of the current value, or null if the list is emtpy. - late int _index; + // The index of the current value, or -1 if the list is empty. + int _index = -1; /// Returns the current value of the stack. T? get currentValue => _list.isEmpty ? null : _list[_index];