rawQuery method Null safety

Future<List<Map<String, Object?>>> rawQuery(
  1. String sql,
  2. [List<Object?>? arguments]
)

Executes a raw SQL SELECT query and returns a list of the rows that were found.

List<Map> list = await database.rawQuery('SELECT * FROM Test');

Implementation

Future<List<Map<String, Object?>>> rawQuery(String sql,
    [List<Object?>? arguments]);