Skip to content

Commit 171a8fa

Browse files
Expands README example
1 parent 5f4d5c7 commit 171a8fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ fun example(store: ObjectStore) {
2323
```kotlin
2424
class AppData : ObjectStoreModel(InMemoryStore()) {
2525
var username by stringItem()
26+
val lastname by nullableStringItem()
2627
var age by intItem()
2728
var hasSeenOnboarding by booleanItem()
29+
val landedOnDashboard by booleanNullabeItem()
2830
var lastSeen by longItem()
2931
var rating by floatItem()
3032
}

0 commit comments

Comments
 (0)