positionManager function

Widget positionManager({
  1. required Style style,
  2. required Widget widget,
})

Implementation

Widget positionManager({required Style style, required Widget widget}) {
  if (style.left != null ||
      style.right != null ||
      style.top != null ||
      style.bottom != null) {
    return position(widget, style.left, style.right, style.top, style.bottom);
  }
  return widget;
}