takeScreenshot method

Future<Screenshot> takeScreenshot({
  1. String? name,
})

Takes as screenshot of this element

The element must be mounted

Implementation

Future<Screenshot> takeScreenshot({String? name}) {
  return self.takeScreenshot(element: this, name: name);
}