Unverified Commit dad9eb21 authored by suragch's avatar suragch Committed by GitHub

fix spelling typo (#120062)

* fix spelling typo

* _index not nullable

This address the comment here: https://github.com/flutter/flutter/pull/120062#issuecomment-1421424676
parent aa29358c
...@@ -5385,8 +5385,8 @@ class _UndoStack<T> { ...@@ -5385,8 +5385,8 @@ class _UndoStack<T> {
final List<T> _list = <T>[]; final List<T> _list = <T>[];
// The index of the current value, or null if the list is emtpy. // The index of the current value, or -1 if the list is empty.
late int _index; int _index = -1;
/// Returns the current value of the stack. /// Returns the current value of the stack.
T? get currentValue => _list.isEmpty ? null : _list[_index]; T? get currentValue => _list.isEmpty ? null : _list[_index];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment