mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
API doc additions (#63194)
This commit is contained in:
parent
5cf3c8728c
commit
58ec73fad4
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue