done property
Completes when the mirror ends, for any reason: stop was called, adb
exited, or the stream broke. Never completes with an error.
Use it to react to a session that dies on its own — in particular one that never produced a single frame, which is the common outcome when the device cannot start its encoder:
handle.done.then((result) {
if (!result.producedVideo) showError(result.stderr);
});
Implementation
final Future<ScreenMirrorResult> done;