Config class Data Types

Configuration for connecting to the remote Thread API

Constructors

Config({String host: default_host, int port: default_port, Duration timeout: default_timeout, ChannelCredentials credentials: default_credentials, List<FutureOr<void> Function(Map<String, String>, String)> callOptionProviders, Map<String, String> callOptionsMetaData, CallOptions callOptions})

Properties

callOptionProviders ↔ List<FutureOr<void> Function(Map<String, String>, String)>
advanced gRPC use only
read / write
callOptions ↔ CallOptions
read / write
callOptionsMetaData ↔ Map<String, String>
advanced gRPC use only
read / write
credentials ↔ ChannelCredentials
advanced gRPC use only
read / write
host ↔ String
host is the local or remote URL of the Thread API (default: 127.0.0.1).
read / write
port ↔ int
port is the server port (default: 6006).
read / write
timeout ↔ Duration
timeout is the Duration before any network request times out (default: 30 seconds).
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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