getNumberOfPositions abstract method
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});