fix: Use FutureOr for onClose return to avoid breaking old type signatures
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -89,7 +89,7 @@ abstract class DisposableInterface { | @@ -89,7 +89,7 @@ abstract class DisposableInterface { | ||
89 | /// Or dispose objects that can potentially create some memory leaks, | 89 | /// Or dispose objects that can potentially create some memory leaks, |
90 | /// like TextEditingControllers, AnimationControllers. | 90 | /// like TextEditingControllers, AnimationControllers. |
91 | /// Might be useful as well to persist some data on disk. | 91 | /// Might be useful as well to persist some data on disk. |
92 | - Future onClose() async {} | 92 | + FutureOr onClose() async {} |
93 | } | 93 | } |
94 | 94 | ||
95 | /// Used like [SingleTickerProviderMixin] but only with Get Controllers. | 95 | /// Used like [SingleTickerProviderMixin] but only with Get Controllers. |
-
Please register or login to post a comment