ServerApi class

The DevTools server API.

This defines endpoints that serve all requests that come in over api/.

Constructors

ServerApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

badRequest([String? logError]) → Response
A shelf.Response for API calls that encountered a request problem e.g., setActiveSurvey not called.
getCompleted(String value) → Response
Return the value of the property.
logScreenView() → Response
Logs a page view in the DevTools server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notImplemented() → Response
A shelf.Response for API calls that have not been implemented in this server.
serverError([String? logError]) → Response
A shelf.Response for API calls that encountered a server error e.g., setActiveSurvey not called.
setCompleted(String value) → Response
Return the value of the property after the property value has been set.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

devToolsPreferences DevToolsUsage
no setter

Static Methods

canHandle(Request request) bool
Determines whether or not request is an API call.
handle(Request request, {required ExtensionsManager extensionsManager, required DeeplinkManager deeplinkManager, ServerApi? api}) FutureOr<Response>
Handles all requests.

Constants

errorNoActiveSurvey → const String