openReadOnlyDatabase function

Future<Database> openReadOnlyDatabase(
  1. String path, {
  2. bool? singleInstance = true,
})

Open the database at a given path in read only mode

Implementation

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