W3cubDocs

/Dart 2

Service class

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

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Static Methods

controlWebServer({bool enable: false }) → Future<ServiceProtocolInfo>
Control the web server that the service protocol is accessed through. The enable argument must be a boolean and is used as a toggle to enable (true) or disable (false) the web server servicing requests.
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. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-developer/Service-class.html