nudgeSelected method

bool nudgeSelected({
  1. double dx = 0,
  2. double dy = 0,
  3. bool largeStep = false,
})

Moves the selected object with keyboard-style step sizes.

Implementation

bool nudgeSelected({double dx = 0, double dy = 0, bool largeStep = false}) {
  final step = largeStep ? 10.0 : 1.0;
  return moveSelectedBy(dx * step, dy * step);
}