Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This repository holds the source code for the Realm SDK for Flutter™ and Dart

## Getting Started

* Import Realm in a dart file `app.dart`
* Import Realm in a dart file `app.dart`. Remember to add `part 'app<the file name>.realm.dart'` below the imports or Realm won't generate needed objects automatically, although the language server may complain the URI does not exist.

```dart
import 'package:realm/realm.dart'; // import realm package
Expand Down Expand Up @@ -149,7 +149,7 @@ Realm Flutter package is published to [realm](https://pub.dev/packages/realm).

* Create a data model class.

It should start with an underscore `_Item` and be annotated with `@RealmModel()`
It should start with an underscore `_Item` and be annotated with `@RealmModel()`. If the object needs to be used inside other data model classes, annotate with `@RealmModel(ObjectType.embeddedObject)` instead.

```dart
@RealmModel()
Expand Down