disposeCamera method

  1. @override
void disposeCamera()
override

Closes and releases the camera.

This is separate from dispose so the isolate can keep reporting its status.

Implementation

@override
void disposeCamera() {
  camera?.dispose();
  camera = null;
}