WidgetPreview constructor

const WidgetPreview({
  1. required Widget child,
  2. String? name,
  3. double? width,
  4. double? height,
  5. double? textScaleFactor,
})

Wraps child in a WidgetPreview instance that applies some set of properties.

Implementation

const WidgetPreview({
  required this.child,
  this.name,
  this.width,
  this.height,
  this.textScaleFactor,
});