alignX method

Widget alignX(
  1. double x, {
  2. double? from,
})

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

Implementation

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