dispose method
Implementation
Future<void> dispose() async {
if (!is_camera_init) {
return;
}
if (!is_select_camera) {
return;
}
if (!is_camera_active) {
return;
}
if (isMobile) {
await camera_mobile_controller.dispose();
} else if (isDesktop) {
if (Platform.isWindows) {
await camera_windows.dispose(camera_id);
}
}
}