mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
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:
@@ -25,7 +25,9 @@ class DebugAuthInterface
|
||||
);
|
||||
|
||||
@override
|
||||
Future<Result<void, String>> logout() async {
|
||||
Future<Result<void, String>> logout({
|
||||
Future<void> Function()? onLoggedOut,
|
||||
}) async {
|
||||
Arcane.log("Logging out");
|
||||
|
||||
_isSignedIn = false;
|
||||
|
||||
@@ -14,11 +14,10 @@ class ArcaneEnvironment extends InheritedWidget {
|
||||
/// Creates an `ArcaneEnvironment` widget.
|
||||
const ArcaneEnvironment({
|
||||
required this.environment,
|
||||
required Widget child,
|
||||
required void Function(Environment) switchEnvironment,
|
||||
Key? key,
|
||||
}) : _switchEnvironment = switchEnvironment,
|
||||
super(key: key, child: child);
|
||||
required super.child,
|
||||
super.key,
|
||||
}) : _switchEnvironment = switchEnvironment;
|
||||
|
||||
/// Retrieves the `ArcaneEnvironment` instance from the nearest ancestor.
|
||||
///
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ environment:
|
||||
flutter: ">=1.17.0"
|
||||
|
||||
dependencies:
|
||||
arcane_helper_utils: ^1.4.1
|
||||
arcane_helper_utils: ^1.4.5
|
||||
collection: ^1.19.0
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
Reference in New Issue
Block a user