show static method

DialogShower show(
  1. Widget child, {
  2. bool? fixed,
  3. double? x,
  4. double? y,
  5. double? width,
  6. double? height,
  7. String? key,
  8. _ReInit? init,
})

Implementation

static DialogShower show(Widget child, {bool? fixed, double? x, double? y, double? width, double? height, String? key, _ReInit? init}) {
  DialogShower shower = DialogShower();
  if (fixed == true) {
    shower
      ..alignment = null
      ..padding = const EdgeInsets.only(left: -1, top: -1);
  }
  if (x != null && y != null) {
    shower
      ..alignment = fixed == true ? null : Alignment.topLeft
      ..padding = EdgeInsets.only(left: x, top: y);
  }
  shower = init?.call(shower) ?? shower;
  return showWith(shower, child, width: width, height: height, key: key);
}