MorphReveal constructor
Creates a reveal over child on the from..to progress range.
Implementation
const MorphReveal({
super.key,
this.from = 0.45,
this.to = 0.9,
this.slideOffset = const Offset(0, 14),
this.scaleFrom = 0.96,
this.squashFrom = 0.85,
this.alignment = Alignment.topCenter,
this.curve = Curves.easeOut,
required this.child,
}) : assert(
0 <= from && from < to && to <= 1,
'The reveal range must satisfy 0 <= from < to <= 1; '
'got from: $from, to: $to.',
);