W3cubDocs

/Dart 2

current property

T current

The current value of the stream.

Is null before the first call to moveNext and after a call to moveNext completes with a false result or an error.

When a moveNext call completes with true, the current field holds the most recent event of the stream, and it stays like that until the next call to moveNext. Between a call to moveNext and when its returned future completes, the value is unspecified.

Implementation

T get 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-async/StreamIterator/current.html