API doc additions (#63194)
This commit is contained in:
parent
5cf3c8728c
commit
58ec73fad4
@ -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 {
|
|||||||
_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');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user