Skip to content

Commit b8ebbb0

Browse files
author
Ivan Dlugos
committed
Sync - example - annotate the entity with @sync()
1 parent 092f9ae commit b8ebbb0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/flutter/objectbox_demo_sync/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import 'package:objectbox/observable.dart';
1010
import 'objectbox.g.dart';
1111

1212
@Entity()
13+
@Sync()
1314
class Note {
1415
@Id()
1516
int id;

example/flutter/objectbox_demo_sync/lib/objectbox-model.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"id": "1:2802681814019499133",
88
"lastPropertyId": "4:6451339597165131221",
99
"name": "Note",
10+
"flags": 2,
1011
"properties": [
1112
{
1213
"id": "1:3178873177797362769",

0 commit comments

Comments
 (0)