AnimatedGap constructor
const
AnimatedGap(})
Creates a Gap that animates its parameters implicitly.
The curve and duration arguments must not be null.
Implementation
const AnimatedGap(
this.mainAxisExtent, {
Key? key,
this.crossAxisExtent,
this.color,
Curve curve = Curves.linear,
required Duration duration,
VoidCallback? onEnd,
}) : assert(mainAxisExtent >= 0 && mainAxisExtent < double.infinity),
assert(crossAxisExtent == null ||
(crossAxisExtent >= 0 && crossAxisExtent < double.infinity)),
super(
key: key,
curve: curve,
duration: duration,
onEnd: onEnd,
);