SwitchClient class Components

gRPC client for the Switch component.

Inheritance
Implemented types
Mixed-in types

Constructors

SwitchClient.new(String name, ClientChannelBase channel)

Properties

callOptions CallOptions
no setterinherited
channel ClientChannelBase
getter/setter pairoverride
client SwitchServiceClient
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disableDebugLogging() → void
Disable debug logging for gRPC calls by removing the trace key from the metadata.
inherited
doCommand(Map<String, dynamic> command) Future<Map<String, dynamic>>
Send/Receive arbitrary commands to the Resource
override
enableDebugLogging({String? traceKey}) → void
Enable debug logging for gRPC calls by setting a trace key in the metadata. If no trace key is provided, a random one will be generated.
inherited
getNumberOfPositions({Map<String, dynamic>? extra}) Future<int>
Get the number of available positions (int) of the Switch.
override
getPosition({Map<String, dynamic>? extra}) Future<int>
Get the current position (int) of the Switch.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPosition(int position, {Map<String, dynamic>? extra}) Future<void>
Update the Switch to the provided position.
override
toString() String
A string representation of this object.
inherited

Operators

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