MorphReveal constructor

const MorphReveal({
  1. Key? key,
  2. double from = 0.45,
  3. double to = 0.9,
  4. Offset slideOffset = const Offset(0, 14),
  5. double scaleFrom = 0.96,
  6. double squashFrom = 0.85,
  7. Alignment alignment = Alignment.topCenter,
  8. Curve curve = Curves.easeOut,
  9. required Widget child,
})

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.',
     );