takeScreenshot method

  1. @protected
Future<String> takeScreenshot(
  1. World world
)

Implementation

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

  return base64Encode(bytes);
}