From d118a07497264f10751bc7a8efdbe2c93c346653 Mon Sep 17 00:00:00 2001 From: artahmetaj Date: Mon, 28 Oct 2024 12:10:17 +0100 Subject: [PATCH] Remove dispose method on testclass param --- test/get_it_test.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/get_it_test.dart b/test/get_it_test.dart index ef0c6a5..113f50e 100644 --- a/test/get_it_test.dart +++ b/test/get_it_test.dart @@ -46,10 +46,6 @@ class TestClassParam extends TestBaseClass { TestClassParam({this.param1, this.param2}) { constructorCounter++; } - - void dispose() { - disposeCounter++; - } } class TestClassDisposableWithDependency with Disposable { @@ -268,7 +264,7 @@ void main() { final getIt = GetIt.instance; constructorCounter = 0; getIt.registerCachedFactoryParam( - (f,s) => TestClassParam(param1: f,param2:s), + (f, s) => TestClassParam(param1: f, param2: s), ); final instance1 = getIt(param1: 'abc', param2: 1); final instance2 = getIt(param1: 'abc', param2: 1); @@ -282,7 +278,7 @@ void main() { final getIt = GetIt.instance; constructorCounter = 0; getIt.registerCachedFactoryParam( - (f,s) => TestClassParam(param1: f,param2: s), + (f, s) => TestClassParam(param1: f, param2: s), ); final instance1 = getIt(param1: 'abc', param2: 1); final instance2 = getIt(param1: 'abc', param2: 2);