alignX method
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,
);
}