readSnapshot method
The native surface as a scene; a sentinel scene when it cannot be read.
Implementation
@override
Future<Scene> readSnapshot() async {
lastReadProblem = null;
final path = await capture();
if (path == null) {
lastReadProblem = 'the screenshot for reading the native surface failed';
return _sentinel();
}
return readFrom(path);
}