mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
v1.2.3
- Added `ValueNotifier`s to both the `ArcaneAuthenticationService` and `ArcaneFeatureFlags`. This enables the possibility of listening for changes to either service. Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -1,3 +1,27 @@
|
||||
## 1.2.3
|
||||
|
||||
- Added `ValueNotifier`s to both the `ArcaneAuthenticationService` and
|
||||
`ArcaneFeatureFlags`. This enables the possibility of listening for changes to
|
||||
either service.
|
||||
|
||||
### Example
|
||||
|
||||
```dart
|
||||
// Listen to changes in the authentication status
|
||||
Arcane.auth.isSignedIn.addListener(() {
|
||||
if (Arcane.auth.isSignedIn.value) {
|
||||
Arcane.log("User is signed in");
|
||||
} else {
|
||||
Arcane.log("User is signed out");
|
||||
}
|
||||
});
|
||||
|
||||
// Listen to changes in the enabled/disabled features
|
||||
Arcane.features.notifier.addListener(() {
|
||||
Arcane.log("Enabled features have been updated: ${Arcane.features.notifier.value}");
|
||||
});
|
||||
```
|
||||
|
||||
## 1.2.2
|
||||
|
||||
- Lowered minimum required collection dependency version to prevent forcing
|
||||
|
||||
Reference in New Issue
Block a user