MotionController constructor

MotionController({
  1. double? damping = defaultDampingFactor,
  2. double maxAngle = defaultMaxAngle,
})

A controller that holds the Motion widget's X and Y angles.

Implementation

MotionController(
    {this.damping = defaultDampingFactor, this.maxAngle = defaultMaxAngle});