realm_generator 0.1.0+preview realm_generator: ^0.1.0+preview copied to clipboard
Generates RealmObject classes from Realm data model classes. This package is part of the official Realm Flutter and Realm Dart SDKs
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add realm_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
realm_generator: ^0.1.0+preview
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:realm_generator/realm_generator.dart';