Skip to content

Commit

Permalink
doc: Update cell docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Nov 15, 2024
1 parent dea704d commit d953c51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/libs/cell/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ void mutate(Cell<int> cell){
cell.set(2);
}
```
In a reactive context, such as with flutter, the conceptual equivalent is `ValueNotifier`.

Extensions exist for primitives. e.g. `Cell<int>` can be used similar to a normal `int`.
```dart
Cell<int> cell = Cell(10);
Expand Down

0 comments on commit d953c51

Please sign in to comment.