isReadOnly property

bool isReadOnly
final

Specifies whether a Realm should be opened as read-only.

This allows opening it from locked locations such as resources, bundled with an application.

The realm file must already exists at path

Implementation

final bool isReadOnly;