commit | dad9eb21f9c34ebbed1328d24bb9069168e14eae | [log] [tgz] |
---|---|---|
author | suragch <studymongolian@gmail.com> | Wed Feb 22 07:16:23 2023 +0800 |
committer | GitHub <noreply@github.com> | Tue Feb 21 23:16:23 2023 +0000 |
tree | ec5182374128249e1ee011c84fd2b3fec3600548 | |
parent | aa29358c5e853ba152b5ea3247c102923958a7f4 [diff] |
fix spelling typo (#120062) * fix spelling typo * _index not nullable This address the comment here: https://github.com/flutter/flutter/pull/120062#issuecomment-1421424676
diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 8fcb788..5c96f23 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart
@@ -5385,8 +5385,8 @@ final List<T> _list = <T>[]; - // 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];