lazy method
Implementation
@override
Stream<Iterable<Map<String, dynamic>>> lazy([
int chunk = 100,
String column = 'id',
]) async* {
int offset = 0;
while (true) {
orderByAsc(column).limit(chunk).offset(offset);
final result = await get();
if (result.isEmpty) {
break;
}
yield result;
offset += chunk;
if (result.length < chunk) {
break;
}
}
}