dispose method

  1. @override
Future<void> dispose()
override

Stops all cameras and disconnects from the hardware.

Implementation

@override
Future<void> dispose() async {
  await cameras.dispose();
  await videoServer.dispose();
}