detach method
Called when an output should be detached from a CameraController.
This should not need to be called by a user directly unless implementing their own CameraOutput.
Implementation
@override
Future<void> detach(covariant CameraController controller) {
super.detach(controller);
return mediaRecorder.release();
}