Test updated removing the logic implemented inside GetLifeCycle
Showing
1 changed file
with
1 additions
and
17 deletions
| @@ -11,23 +11,7 @@ class Mock { | @@ -11,23 +11,7 @@ class Mock { | ||
| 11 | 11 | ||
| 12 | class DisposableController with GetLifeCycle { | 12 | class DisposableController with GetLifeCycle { | 
| 13 | DisposableController() { | 13 | DisposableController() { | 
| 14 | - onStart.callback = _onStart; | ||
| 15 | - } | ||
| 16 | - | ||
| 17 | - // Internal callback that starts the cycle of this controller. | ||
| 18 | - void _onStart() { | ||
| 19 | - if (initialized) return; | ||
| 20 | - onInit(); | ||
| 21 | - } | ||
| 22 | - | ||
| 23 | - bool initialized = false; | ||
| 24 | - | ||
| 25 | - bool isClosed = false; | ||
| 26 | - | ||
| 27 | - @override | ||
| 28 | - void onInit() async { | ||
| 29 | - super.onInit(); | ||
| 30 | - initialized = true; | 14 | + initLifeCycle(); | 
| 31 | } | 15 | } | 
| 32 | } | 16 | } | 
| 33 | 17 | 
- 
Please register or login to post a comment