Service class final
Access information about the service protocol and control the web server that provides access to the services provided by the Dart VM for debugging and inspecting Dart programs.
Constructors
- Service()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
controlWebServer(
{bool enable = false, bool? silenceOutput}) → Future< ServiceProtocolInfo> -
Control the web server that the service protocol is accessed through.
enable
is used as a toggle to enable or disable the web server servicing requests. IfsilenceOutput
is provided and is true, the server will not output information to the console. -
getInfo(
) → Future< ServiceProtocolInfo> - Get information about the service protocol (version number and Uri to access the service).
-
getIsolateId(
Isolate isolate) → String? -
Returns a String token representing the ID of
isolate
. -
getIsolateID(
Isolate isolate) → String? -
Returns a String token representing the ID of
isolate
. -
getObjectId(
Object object) → String? -
Returns a String token representing the ID of
object
.