From c3eb677b05455f8e6dc02660d14978a9841b9cc8 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Tue, 29 Apr 2025 16:41:34 +0200 Subject: [PATCH] Try using a mixin instead Signed-off-by: Hans Kokx --- lib/src/providers/service_provider.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/providers/service_provider.dart b/lib/src/providers/service_provider.dart index 4eb06fa..0fb6dfc 100644 --- a/lib/src/providers/service_provider.dart +++ b/lib/src/providers/service_provider.dart @@ -162,9 +162,9 @@ extension ServiceProviderExtension on BuildContext { /// to notify listeners of changes. Services are typically registered in /// `ArcaneServiceProvider` and can be accessed using the `service` /// method on `BuildContext`. -abstract class ArcaneService with ChangeNotifier {} +abstract class ArcaneService with ChangeNotifier, ArcaneServiceLocators {} -extension ArcaneServiceLocators on ArcaneService { +mixin ArcaneServiceLocators { /// Retrieves a service of the specified type from the context. /// /// Returns null if no service of type `T` is found.