defaultStoragePath property

String get defaultStoragePath

The platform dependent path used to store realm files

On Flutter Android and iOS this is the application's data directory. On Flutter Windows this is the C:\Users\username\AppData\Roaming\app_name directory. On Flutter macOS this is the /Users/username/Library/Containers/app_name/Data/Library/Application Support directory. On Flutter Linux this is the /home/username/.local/share/app_name directory. On Dart standalone Windows, macOS and Linux this is the current directory.

Implementation

static String get defaultStoragePath {
  return realmCore.getAppDirectory();
}