showWith static method

OverlayShower showWith(
  1. OverlayShower shower,
  2. Widget? child, {
  3. double? dx,
  4. double? dy,
  5. String? key,
})

Implementation

static OverlayShower showWith(OverlayShower shower, Widget? child, {double? dx, double? dy, String? key}) {
  if (dx != null && dy != null) {
    shower.dx = dx;
    shower.dy = dy;
    shower.alignment = Alignment.topLeft;
  }

  centralOfShower?.call(shower);

  shower.show(child);
  add(shower, key: key);
  shower.addDismissCallBack((d) {
    remove(d);
  });
  return shower;
}