RelativeRotaryRotation constructor

RelativeRotaryRotation({
  1. required String direction,
  2. required int steps,
  3. required int durationMilliseconds,
})

Creates a RelativeRotaryRotation object.

Implementation

RelativeRotaryRotation({
  required this.direction,
  required this.steps,
  required this.durationMilliseconds,
})  : assert(steps >= 0 && steps <= 32767,
          "`steps` must be between 0 and 32767 (inclusive)"),
      assert(durationMilliseconds >= 0 && durationMilliseconds <= 65534,
          "`durationMilliseconds` must be between 0 and 65534 (inclusive)");