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 {
scheduleFrame();
}
/// Ensures callbacks for `window.onBeginFrame` and `window.onDrawFrame`
/// are registered.
@protected
void ensureFrameCallbacksRegistered() {
window.onBeginFrame ??= _handleBeginFrame;
......
......@@ -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');
}
......
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