draft 0.0.8 copy "draft: ^0.0.8" to clipboard
draft: ^0.0.8 copied to clipboard

Immer, but for dart. Convert between immutable and mutable objects.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add draft

With Flutter:

 $ flutter pub add draft

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  draft: ^0.0.8

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:draft/draft.dart';
0
likes
130
points
40
downloads

Publisher

verified publisherjosiahsaunders.com

Weekly Downloads

Immer, but for dart. Convert between immutable and mutable objects.

Repository (GitHub)
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, draft_annotation, source_gen

More

Packages that depend on draft