getNumberOfPositions abstract method

Future<int> getNumberOfPositions({
  1. Map<String, dynamic>? extra,
})

Get the number of available positions (int) of the Switch.

await myServo.getNumberOfPositions();

For more information, see Switch component.

Implementation

Future<int> getNumberOfPositions({Map<String, dynamic>? extra});