getDatabasesPath function
Get the default databases location.
A relative path given to openDatabase is relative to this location.
On Android, it is typically data/data/<package_name>/databases
On iOS and MacOS, it is the Documents directory.
With sqflite_common_ffi (Windows, Linux, Dart VM), it is
.dart_tool/sqflite_common_ffi/databases in the current directory: fine
for tests, not for an installed application. On the web
(sqflite_common_ffi_web), it is / (a path is only a name).
Note for iOS and non-Android platforms: Using path_provider is recommended to get the
databases directory. The most appropriate location on iOS would be
the Library directory that you could get from the path_provider package
(https://pub.dev/documentation/path_provider/latest/path_provider/getLibraryDirectory.html).
Implementation
Future<String> getDatabasesPath() => databaseFactory.getDatabasesPath();