showWith static method
OverlayShower
showWith(
- OverlayShower shower,
- Widget? child, {
- double? dx,
- double? dy,
- 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;
}