takeScreenshot method

Future<String> takeScreenshot(
  1. World world
)

Implementation

Future<String> takeScreenshot(World world) async {
  final bytes = await (world as FlutterWorld).appDriver.screenshot();

  return base64Encode(bytes);
}