rawQueryCursor abstract method

Future<QueryCursor> rawQueryCursor(
  1. String sql,
  2. List<Object?>? arguments, {
  3. int? bufferSize,
})

Executes a raw SQL SELECT with a cursor.

Returns a cursor, that must either be closed when reaching the end or that must be closed manually. You have to do QueryCursor.moveNext to navigate (forward) in the cursor.

Since its implementation cache rows for efficiency, bufferSize specified the number of rows to cache (100 being the default)

var cursor = await database.rawQueryCursor('SELECT * FROM Test');

Implementation

Future<QueryCursor> rawQueryCursor(String sql, List<Object?>? arguments,
    {int? bufferSize});