Fix DebugAuthInterface logout method

Added environment key to ArcaneEnvironment constructor
 Renamed switchEnvironment parameter in ArcaneEnvironment constructor

Bumped arcane_helper_utils dependency version
This commit is contained in:
2025-05-19 17:00:27 +02:00
parent c2cfb46d82
commit 93f90a3f72
3 changed files with 7 additions and 6 deletions
@@ -25,7 +25,9 @@ class DebugAuthInterface
); );
@override @override
Future<Result<void, String>> logout() async { Future<Result<void, String>> logout({
Future<void> Function()? onLoggedOut,
}) async {
Arcane.log("Logging out"); Arcane.log("Logging out");
_isSignedIn = false; _isSignedIn = false;
+3 -4
View File
@@ -14,11 +14,10 @@ class ArcaneEnvironment extends InheritedWidget {
/// Creates an `ArcaneEnvironment` widget. /// Creates an `ArcaneEnvironment` widget.
const ArcaneEnvironment({ const ArcaneEnvironment({
required this.environment, required this.environment,
required Widget child,
required void Function(Environment) switchEnvironment, required void Function(Environment) switchEnvironment,
Key? key, required super.child,
}) : _switchEnvironment = switchEnvironment, super.key,
super(key: key, child: child); }) : _switchEnvironment = switchEnvironment;
/// Retrieves the `ArcaneEnvironment` instance from the nearest ancestor. /// Retrieves the `ArcaneEnvironment` instance from the nearest ancestor.
/// ///
+1 -1
View File
@@ -12,7 +12,7 @@ environment:
flutter: ">=1.17.0" flutter: ">=1.17.0"
dependencies: dependencies:
arcane_helper_utils: ^1.4.1 arcane_helper_utils: ^1.4.5
collection: ^1.19.0 collection: ^1.19.0
flutter: flutter:
sdk: flutter sdk: flutter