alignXY method

Widget alignXY(
  1. double x,
  2. double y, {
  3. AlignmentGeometry? from,
})

Applies an AlignEffect to a Widget with the given x and y values.

Implementation

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