stopPreview method Null safety
override
Implementation
static void stopPreview() {
keepRunning = false;
Future.delayed(const Duration(seconds: 1), () => client.close());
}
static void stopPreview() {
keepRunning = false;
Future.delayed(const Duration(seconds: 1), () => client.close());
}