getNumberOfPositionsWithLabels abstract method
Get the number of available positions (int) and the list of labels of the Switch.
await mySwitch.getNumberOfPositionsWithLabels();
For more information, see Switch component.
Implementation
Future<PositionsInfo> getNumberOfPositionsWithLabels({Map<String, dynamic>? extra});