From 3f21f510ee312ee98c9e386deed38cf5c89a88fc Mon Sep 17 00:00:00 2001 From: Bogdan Luckyanchuk Date: Wed, 26 Nov 2025 17:14:16 +0300 Subject: [PATCH] fix: make EasyDialogsController mockable by removing final modifier (#45) --- CHANGELOG.md | 4 +++- lib/src/core/easy_dialogs_controller.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab62aaa..d9c01c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ +## 4.0.6 +* **FIX:** Removed `final` modifier from `EasyDialogsController` class to enable mocking ([issue 45](https://github.com/feduke-nukem/flutter_easy_dialogs/issues/45)) + ## 4.0.5 * **FEAT:** https://github.com/feduke-nukem/flutter_easy_dialogs/issues/40 * **FEAT:** Made `FlutterEasyDialogs.controller` public API by removing `@visibleForTesting` annotation ([issue 42](https://github.com/feduke-nukem/flutter_easy_dialogs/issues/42)) - ## 4.0.4 * **FIX:** Fixed https://github.com/feduke-nukem/flutter_easy_dialogs/issues/37 * **FIX:** Fixed https://github.com/feduke-nukem/flutter_easy_dialogs/issues/38 diff --git a/lib/src/core/easy_dialogs_controller.dart b/lib/src/core/easy_dialogs_controller.dart index c256409..a10931f 100644 --- a/lib/src/core/easy_dialogs_controller.dart +++ b/lib/src/core/easy_dialogs_controller.dart @@ -20,7 +20,7 @@ part 'easy_dialog_dismiss.dart'; /// {@category Migration guide from 2.x to 3.x} /// {@category Dialogs} /// Core class for manipulating dialogs. -final class EasyDialogsController { +class EasyDialogsController { @visibleForTesting final entries = {};