lerpStep static method

Widget lerpStep(
  1. Widget a,
  2. Widget b,
  3. double t, {
  4. AlignmentGeometry alignment = Alignment.center,
})

Implementation

static Widget lerpStep(Widget a, Widget b, double t,
    {AlignmentGeometry alignment = Alignment.center}) {
  if (t == 0) {
    return a;
  } else if (t == 1) {
    return b;
  }
  return Stack(
    fit: StackFit.passthrough,
    children: [
      a,
      b,
    ],
  );
}