DeviceBuilder constructor

DeviceBuilder({
  1. WidgetWrapper? wrap,
  2. Color? bgColor,
})

Create scenarios rendered on multiple device sizes in a widget to take a golden snapshot of. Renders devices horizontally and scenarios vertically.

wrap (optional) will wrap the scenario's widget in the tree.

bgColor will change the background color of output .png file

Implementation

DeviceBuilder({
  this.wrap,
  this.bgColor,
});