Unverified Commit 58ec73fa authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

API doc additions (#63194)

parent 5cf3c872
...@@ -720,6 +720,8 @@ mixin SchedulerBinding on BindingBase { ...@@ -720,6 +720,8 @@ mixin SchedulerBinding on BindingBase {
scheduleFrame(); scheduleFrame();
} }
/// Ensures callbacks for `window.onBeginFrame` and `window.onDrawFrame`
/// are registered.
@protected @protected
void ensureFrameCallbacksRegistered() { void ensureFrameCallbacksRegistered() {
window.onBeginFrame ??= _handleBeginFrame; window.onBeginFrame ??= _handleBeginFrame;
......
...@@ -954,6 +954,10 @@ mixin WidgetInspectorService { ...@@ -954,6 +954,10 @@ mixin WidgetInspectorService {
_errorsSinceReload = 0; _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() { bool isStructuredErrorsEnabled() {
return const bool.fromEnvironment('flutter.inspector.structuredErrors'); return const bool.fromEnvironment('flutter.inspector.structuredErrors');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment