getNumberOfPositionsWithLabels abstract method

Future<PositionsInfo> getNumberOfPositionsWithLabels({
  1. Map<String, dynamic>? extra,
})

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});