API doc additions (#63194)

This commit is contained in:
Phil Quitslund 2020-08-07 21:31:04 -07:00 committed by GitHub
parent 5cf3c8728c
commit 58ec73fad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -720,6 +720,8 @@ mixin SchedulerBinding on BindingBase {
scheduleFrame();
}
/// Ensures callbacks for `window.onBeginFrame` and `window.onDrawFrame`
/// are registered.
@protected
void ensureFrameCallbacksRegistered() {
window.onBeginFrame ??= _handleBeginFrame;

View file

@ -954,6 +954,10 @@ mixin WidgetInspectorService {
_errorsSinceReload = 0;
}
/// Whether structured errors are enabled.
///
/// Structured errors provide semantic information that can be used by IDEs
/// to enhance the display of errors with rich formatting.
bool isStructuredErrorsEnabled() {
return const bool.fromEnvironment('flutter.inspector.structuredErrors');
}