Switch class abstract Components
Switch represents a set of finite positions.
For more information, see Switch component.
- Inheritance
- Implementers
Constructors
- Switch()
Properties
Methods
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
getNumberOfPositions(
{Map< String, dynamic> ? extra}) → Future<int> - Get the number of available positions (int) of the Switch.
-
getPosition(
{Map< String, dynamic> ? extra}) → Future<int> - Get the current position (int) of the Switch.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRobot(
RobotClient robot, String name) → Switch -
Get the Switch named
name
from the provided robot. -
getResourceName(
String name) → ResourceName -
Get the ResourceName for this Switch with the given
name
.