saveFrame method

Future<void> saveFrame(
  1. 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");
}