We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13f1938 commit 13281f5Copy full SHA for 13281f5
examples/flutter/objectbox_demo_desktop/lib/main.dart
@@ -51,18 +51,19 @@ class _MyHomePageState extends State<MyHomePage> {
51
int _lastPutId;
52
53
void _testGet() {
54
+ final Note fetchedNote = _box.get(_lastPutId);
55
setState(() {
56
if(_lastPutId == null) {
57
_status += "cannot get, as nothing was put in this session yet\n";
58
return;
59
}
- _status += "fetched note: ${_box.get(_lastPutId)}\n";
60
+ _status += "fetched note: $fetchedNote\n";
61
});
62
63
64
void _testPut() {
65
+ _lastPutId = _box.put(Note.construct("Hello"));
66
- _lastPutId = _box.put(Note.construct("Hello"));
67
_status += "put new note with id $_lastPutId\n";
68
69
0 commit comments