openReadOnlyDatabase function

Future<Database> openReadOnlyDatabase(
  1. String path, {
  2. String? password,
})

Open the database at a given path in read only mode

Implementation

Future<Database> openReadOnlyDatabase(String path, {String? password}) =>
    openDatabase(path, readOnly: true, password: password);