Jonny Borges
Committed by GitHub

Merge pull request #1004 from saviogrossi/include-getlifecyclebase-on-dispose

includes GetLifeCycleBase mixin on delete/dispose
@@ -388,9 +388,9 @@ class GetInstance { @@ -388,9 +388,9 @@ class GetInstance {
388 return false; 388 return false;
389 } 389 }
390 390
391 - if (i is GetLifeCycle) { 391 + if (i is GetLifeCycleBase && i.onDelete != null) {
392 i.onDelete(); 392 i.onDelete();
393 - Get.log('"$newKey" onClose() called'); 393 + Get.log('"$newKey" onDelete() called');
394 } 394 }
395 395
396 _singl.remove(newKey); 396 _singl.remove(newKey);