Motion.only constructor

const Motion.only({
  1. Key? key,
  2. MotionController? controller,
  3. required Widget child,
  4. GlareConfiguration? glare,
  5. ShadowConfiguration? shadow,
  6. TranslationConfiguration? translation,
  7. BorderRadius? borderRadius,
  8. FilterQuality? filterQuality = defaultFilterQuality,
})

Creates a Motion widget with the given child and controller, but only applying the rotation effect by default.

A shorthand for initializing a Motion widget with no other effect than the rotation.

Implementation

const Motion.only({
  Key? key,
  this.controller,
  required this.child,
  this.glare,
  this.shadow,
  this.translation,
  this.borderRadius,
  this.filterQuality = defaultFilterQuality,
}) : super(key: key);