position abstract method

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

Get the current angle (degrees) of the Servo.

var angle = await myServo.position();

For more information, see Servo component.

Implementation

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