defaultController property

MotionController defaultController
final

A default controller for initializing the widgets with the default damping and maxAngle values.

Note : when the defaultController is used by multiple simultaneously visible widgets, the X and Y values will be shared by all of these widgets. If the pointer input is used, this can make other widgets move when hovering a single widget, which is a design fault.

You may use individual instances of MotionController to avoid this behavior.

Implementation

static final defaultController = MotionController();