void main()
{
Stream _stream = Stream.fromIterable([1, 2, 3, 4, 5]);
_stream.isEmpty.then((value) => print("isEmpty: $value"));
_stream.length.then((value) => print("length : $value"));
_stream.first.then((value) => print("first : $value"));
_stream.last.then((value) => print("last : $value"));
}
isEmpty: false
first : 1
length : 5
last : 5
비동기 예제 : Stream에서 then 사용하기
|
2022.10.22 01:30:38
|
2022.10.22 01:31:11
|
474
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2023.03.17
2023.02.19
2023.01.23
2022.12.25
2022.10.30
2022.10.22
2022.10.19