alignY method

Widget alignY(
  1. double y, {
  2. double? from,
})

Applies an AlignEffect to a Widget only on the y-axis.

Implementation

Widget alignY(double y, {double? from}) {
  return EffectWidget(
    start: from == null ? null : AlignEffect(alignment: Alignment(0, from)),
    end: AlignEffect(alignment: Alignment(0, y)),
    child: this,
  );
}