Skip to content

Commit

Permalink
Add StockResponse extensions in the documentation (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirland authored Nov 18, 2022
1 parent fbe45b0 commit 239090a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ Each `StockResponse` includes an `origin` field which specifies where the event
});
```

_Note: `Stock` provides a [large list of extensions][response_extensions] to facilitate and manipulate the responses._

### Get non-stream data from Stock

Stock provides a couple of methods to get data without using a data stream.
Expand All @@ -138,8 +140,6 @@ Stock provides a couple of methods to get data without using a data stream.
```




### Use different types for `Fetcher` and `SourceOfTruth`

Sometimes you need to use different entities for Network and DB. For that case `Stock` provides the `StockTypeMapper`, a class that transforms one entity into the other.
Expand Down Expand Up @@ -234,6 +234,7 @@ Made with ❤️ by [Xmartlabs](https://xmartlabs.com).
[Drift]: https://pub.dev/packages/drift
[Floor]: https://pub.dev/packages/floor
[Realm]: https://pub.dev/packages/realm
[response_extensions]: https://pub.dev/documentation/stock/latest/stock/StockResponseExtensions.html
[Store]: https://github.com/MobileNativeFoundation/Store
[`CachedSourceOfTruth`]: lib/src/source_of_truth.dart
[`Fetcher`]: lib/src/fetcher.dart
Expand Down

0 comments on commit 239090a

Please sign in to comment.