stopImageStream method

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

Implementation

@override
Future<void> stopImageStream() async {
  try {
    await events?.cancel();
    events = null;
  } catch (e) {
    throw CameraMacOSException(
      code: "CANNOT_STOP_STREAM",
      message: "Image stream cannot be stopped",
      details: e.toString(),
    );
  }
}