Widget positionChild(Widget child, [bool isStackLayout = false]) { if (isStackLayout) { return stackChild(child); } else { return commonChild(child); } }