Dragging constructor

const Dragging({
  1. bool resets = true,
  2. Duration duration = const Duration(milliseconds: 100),
  3. Curve curve = Curves.ease,
})

A parameter class that pertains to PLayers and their parallax animation during an active drag or pointer hover event.

  • resets, a flag to toggle whether layers reset on pointer exit
  • duration of parallax animation under the pointer
  • curve of parallax animation under the pointer

Implementation

const Dragging({
  this.resets = true,
  this.duration = const Duration(milliseconds: 100),
  this.curve = Curves.ease,
});