Skip to content

Commit

Permalink
Started limitations section.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Jan 24, 2019
1 parent c097635 commit 013ab8b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class $Person {
}
```


## Todo's

- [ ] Optional constructor types (named, private, const, etc)
Expand All @@ -133,6 +132,16 @@ class $Person {
- [ ] Serialization toMap/fromMap
- [ ] Serialization toJson/fromJson

## Limitations

### Cannot set values to null with copyWith

Ex) Clearing a user's avatar image:

```dart
profile = profile.copyWith(imageUrl: null); // This won't have an effect since copyWith ignores null input parameters.
```

## References

1. [Issue: Statically tracked shared immutable objects](https://github.com/dart-lang/language/issues/125)
Expand Down

0 comments on commit 013ab8b

Please sign in to comment.