Use realm package for Flutter and realm_dart package for Dart applications.įor complete documentation of the SDKs, go to the Realm SDK documentation. Realm.write(() => realm.add(Car('VW', 'Polo', kilometers: 22000))) įor complete samples check the Realm Flutter and Dart Samples. Var car = Car("Tesla", "Model Y", kilometers: 5) Generate RealmObject class Car from data model class _Car. Part 'app.g.dart' // declare a part // define a data model class named `_Car`. Import Realm in a dart file app.dart import 'package:realm/realm.dart' // import realm package Get started for free with a template application that includes a cloud backend and Sync.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |