Showing
1 changed file
with
3 additions
and
0 deletions
| @@ -324,6 +324,9 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> { | @@ -324,6 +324,9 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> { | ||
| 324 | await MobileScannerPlatform.instance.updateScanWindow(window); | 324 | await MobileScannerPlatform.instance.updateScanWindow(window); |
| 325 | } | 325 | } |
| 326 | 326 | ||
| 327 | + /// Dispose the controller. | ||
| 328 | + /// | ||
| 329 | + /// Once the controller is disposed, it cannot be used anymore. | ||
| 327 | @override | 330 | @override |
| 328 | Future<void> dispose() async { | 331 | Future<void> dispose() async { |
| 329 | if (_isDisposed) { | 332 | if (_isDisposed) { |
-
Please register or login to post a comment