Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -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); | 
- 
Please register or login to post a comment