W3cubDocs

/Dart 2

current property

T current
override

Returns the current element.

Returns null if the iterator has not yet been moved to the first element, or if the iterator has been moved past the last element of the Iterable.

The current getter should keep its value until the next call to moveNext, even if an underlying collection changes. After a successful call to moveNext, the user doesn't need to cache the current value, but can keep reading it from the iterator.

Implementation

T get current => _current;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/FixedSizeListIterator/current.html