NvGoldenMultiple.devices constructor

NvGoldenMultiple.devices({
  1. required List<Screen> deviceSizes,
  2. BoxDecoration? decoration,
  3. required Widget wrap(
    1. Widget child
    )?,
  4. Widget wrapScenario(
    1. Widget child
    )?,
})

Constructor for device tests

Implementation

NvGoldenMultiple.devices({
  required List<Screen> deviceSizes,
  BoxDecoration? decoration,
  required Widget Function(Widget child)? wrap,
  this.wrapScenario,
})  : nrColumns = deviceSizes.length,
      _scenarios = [],
      _deviceSizes = deviceSizes,
      decoration = decoration ?? BoxDecoration(border: Border.all()),
      assert(deviceSizes.isNotEmpty),
      super(wrap: wrap);