forStore method

Future<Screenshot> forStore(
  1. ScreenshotStore store, {
  2. bool frame = false,
  3. String? caption,
  4. Color? background,
})

This screenshot at the exact size store asks for.

A screen of nearly the same shape fills the size, and any other is fitted inside it on background. With frame, the screen is drawn in a plain phone outline on background, under caption.

Implementation

Future<Screenshot> forStore(
  ScreenshotStore store, {
  bool frame = false,
  String? caption,
  Color? background,
}) => _compose(
  store.width,
  store.height,
  frame: frame,
  caption: caption,
  background: background,
);