readSnapshot method

  1. @override
Future<Scene> readSnapshot()
override

The native surface as a scene; a sentinel scene when it cannot be read.

Implementation

@override
Future<Scene> readSnapshot() async {
  if (_surface.isEmpty) await foreignSurface();
  return _scene();
}