Preview constructor

const Preview({
  1. Key? key,
  2. required WidgetBuilder builder,
  3. String? title,
  4. double? width,
  5. double? height,
  6. BoxConstraints? constraints,
  7. Device? device,
})

Implementation

const Preview({
  Key? key,
  required this.builder,
  this.title,
  this.width,
  this.height,
  this.constraints,
  this.device,
}) : super(key: key);