DragAction constructor

const DragAction(
  1. double fromX,
  2. double fromY,
  3. double toX,
  4. double toY, {
  5. String button = 'left',
  6. List<String> modifiers = const [],
})

Creates a drag from (fromX, fromY) to (toX, toY).

Implementation

const DragAction(
  this.fromX,
  this.fromY,
  this.toX,
  this.toY, {
  this.button = 'left',
  this.modifiers = const [],
});