Skip to content

Commit

Permalink
fix spelling typo (#120062)
Browse files Browse the repository at this point in the history
* fix spelling typo

* _index not nullable

This address the comment here: flutter/flutter#120062 (comment)
  • Loading branch information
suragch authored Feb 21, 2023
1 parent aa29358 commit dad9eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/widgets/editable_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5385,8 +5385,8 @@ class _UndoStack<T> {

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];
Expand Down

0 comments on commit dad9eb2

Please sign in to comment.