Skip to content

Commit

Permalink
README updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Jan 23, 2019
1 parent fadaea0 commit 3a10559
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Specify the data class using the `@data` annotation:

```dart
import 'package:meta/meta.dart';
import 'package:collection/collection.dart';
import 'package:auto_data/auto_data.dart';
part 'point.g.dart';
Expand Down Expand Up @@ -87,6 +88,7 @@ dev_dependencies:
## Advanced usage
```dart
import 'package:collection/collection.dart';
import 'package:meta/meta.dart';
import 'package:auto_data/auto_data.dart';
import 'foo.dart';
Expand All @@ -109,6 +111,9 @@ class $Person {
/// Depend on another generated class
$Foo foo;

/// Deep comparison of lists
List<$Person> friends;

/// Custom constructors are copied over
$Person.genius()
: name = 'Albert',
Expand Down

0 comments on commit 3a10559

Please sign in to comment.