Captures the screen and returns the PNG path, or null when it fails.
final Future<String?> Function() capture;