debugPrintDone top-level property
A Future that resolves when there is no longer any buffered content being printed by debugPrintThrottled (which is the default implementation for debugPrint, which is used to report errors to the console).
Implementation
Future<void> get debugPrintDone => _debugPrintCompleter?.future ?? Future<void>.value();