SnapshotWidget constructor

const SnapshotWidget(
  1. {Key? key,
  2. SnapshotMode mode = SnapshotMode.normal,
  3. SnapshotPainter painter = const _DefaultSnapshotPainter(),
  4. bool autoresize = false,
  5. required SnapshotController controller,
  6. required Widget? child}
)

Create a new SnapshotWidget.

The controller and child arguments are required.

Implementation

const SnapshotWidget({
  super.key,
  this.mode = SnapshotMode.normal,
  this.painter = const _DefaultSnapshotPainter(),
  this.autoresize = false,
  required this.controller,
  required super.child
});