AnimatedPhysicalModelModifier constructor
const
AnimatedPhysicalModelModifier({
- Key? key,
- Widget? child,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd,
- Key? modifierKey,
- required BoxShape shape,
- Clip clipBehavior = Clip.none,
- BorderRadius borderRadius = BorderRadius.zero,
- required double elevation,
- required Color color,
- bool animateColor = true,
- required Color shadowColor,
- bool animateShadowColor = true,
Creates a widget that animates the properties of a PhysicalModel.
The child, shape, borderRadius, elevation, color, shadowColor,
curve, clipBehavior, and duration arguments must not be null.
Additionally, elevation must be non-negative.
Animating color is optional and is controlled by the animateColor flag.
Animating shadowColor is optional and is controlled by the animateShadowColor flag.
Implementation
const AnimatedPhysicalModelModifier({
super.key,
super.child,
super.curve,
required super.duration,
super.onEnd,
super.modifierKey,
required this.shape,
this.clipBehavior = Clip.none,
this.borderRadius = BorderRadius.zero,
required this.elevation,
required this.color,
this.animateColor = true,
required this.shadowColor,
this.animateShadowColor = true,
});