Motion.only constructor
const
Motion.only({
- Key? key,
- MotionController? controller,
- required Widget child,
- GlareConfiguration? glare,
- ShadowConfiguration? shadow,
- TranslationConfiguration? translation,
- BorderRadius? borderRadius,
- 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);