saveFrame method
- CameraName name
Takes a screenshot of the current frame.
Implementation
Future<void> saveFrame(CameraName name) async {
final cachedFrame = feeds[name]?.frame;
if (cachedFrame == null) throw ArgumentError.notNull("Feed for $name");
await services.files.writeImage(cachedFrame, name.humanName);
models.home.setMessage(severity: Severity.info, text: "Screenshot saved");
}