SwitchClient class Components
gRPC client for the Switch component.
- Inheritance
- Implemented types
Constructors
- SwitchClient(String name, ClientChannelBase channel)
Properties
- 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
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
override
-
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